Results 1 to 4 of 4

Thread: Gateway Field Types

  1. #1

    Default Gateway Field Types

    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
    Innernet Computers
    Custom Software, Website Development and Hosting

  2. #2
    Join Date
    Sep 2008
    Posts
    79

    Wink

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

    defineGatewayField("gateway","type","setting","val ue","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

  3. #3

    Default

    Thanks RenatoMN. This is just what I needed.
    Innernet Computers
    Custom Software, Website Development and Hosting

  4. #4
    Join Date
    Sep 2008
    Posts
    79

    Default

    Please note that for yesno, although it is put as "on" at the database, you need still to test it using "true" and "false".

Similar Threads

  1. Custom field types - clients extra field
    By steam.roy in forum Feature Requests
    Replies: 0
    Last Post: 07-12-11, 04:27 AM
  2. Different client types
    By ddenev in forum Pre-Sales Questions
    Replies: 2
    Last Post: 06-16-07, 04:48 PM
  3. Card Types
    By mintmeister in forum Pre-Sales Questions
    Replies: 1
    Last Post: 04-19-07, 08:36 AM