Jump to content

Gateway Field Types


Louisvdw

Recommended Posts

Where can I find which field types are supported when defining a module?

 

From the Template I can see there are text & yesno types.

 

From the wiki I can see that these fields are supported most likely:

* Text Box - text in the template

* Tick Box - yesno in the template

* Dropdown Menu - ???

* Textarea - ???

* ???

 

Can someone fill in the blanks and perhaps give an example of how to use them (for instance how to populate a Dropdown Menu if that is available)

 

Thanks

Link to comment
Share on other sites

Hello. I had the same doubt when started to develop. I found the syntax is:

 

defineGatewayField("gateway","type","setting","value","name","size","description");

 

on type you can put:

 

text -> text box

yesno -> check box

textarea -> text area

dropdown -> dropdown

hidden -> hidden vars

 

for text:

 

defineGatewayField("gateway","text","name/id","default value","Field Name","Field Size","Description");

 

for yesno:

 

defineGatewayField("gateway","yesno","name/id","on","Checkbox Name","","Description");

 

*default value - blank means unchecked by default. "on" means checked.

 

for textarea:

 

defineGatewayField("gateway","textarea","name/id","Default Text","Text Area Name","Text Area Lines","Description");

 

for dropdown:

 

defineGatewayField("gateway","dropdown","name/id","Default Option","Dropdown Name","","Option 1,Option 2,Etc...");

 

for hidden:

 

defineGatewayField("gateway","hidden","name/id","field value","","","");

 

 

Please contribute if you discover more :)

 

Regards,

Renato

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated