Field Types
Because you can use your own HTML you can create any custom field types. All you need to do is to bind your fields to the w2form object so
you can take advantage of its methods and properties. The w2form object has implementation of most common field types as you can see in the
example below:
Below is the list of supported field types and what corresponding HTML element they need. Please note that there is no <select>
element. Similar functionality is done with list (single item selection) or enum (multi items selection).
text | input[type=text] or textarea |
int | input[type=text] |
float | input[type=text] |
hex | input[type=text] |
money | input[type=text] |
alphanumeric | input[type=text] |
email | input[type=text] |
checkbox | input[type=checkbox] |
password | input[type=password] |
date | input[type=text] |
list | input[type=text] |
enum | input[type=text] |