Louisvdw Posted January 13, 2009 Share Posted January 13, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
RenatoMN Posted January 17, 2009 Share Posted January 17, 2009 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 0 Quote Link to comment Share on other sites More sharing options...
Louisvdw Posted January 18, 2009 Author Share Posted January 18, 2009 Thanks RenatoMN. This is just what I needed. 0 Quote Link to comment Share on other sites More sharing options...
RenatoMN Posted January 18, 2009 Share Posted January 18, 2009 Please note that for yesno, although it is put as "on" at the database, you need still to test it using "true" and "false". 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.