Perhaps you can find some inspiration in the Contour documentation on how to do this.
But basically I suppose you'll need to make use of the maxlength attribute on a regular input="text" field and then add an id, class or data-* attribute and then use serverside/clientside validation using a regular expression to make sure the format is correct.
If you expand the "Additional Settings" on the form field, there is a box where you can insert a regex. This will prevent the user from submitting a value that doesn't meet the regex. It won't stop them after "x" amount of characters but it will stop them from submitting it with the wrong set of characters. You can also include a tooltip with an example of what you are expecting the user to input.
Jan - i should have explained myself in a little more depth. You have sites which allow you to enter your zip code then you would click a button which displays multiple addresses. This then allows the user to select the address applicable and fills in existing textboxes with relevant info.
This is the functionality im after but in Contour? If it needs to be created from scratch i would like to have some guidance on where to start with this and how to integrate?
Zip code field type
Are there any zip code field type that i could use? If not how could i create one?
Thanks
Hi J
Perhaps you can find some inspiration in the Contour documentation on how to do this.
But basically I suppose you'll need to make use of the maxlength attribute on a regular input="text" field and then add an id, class or data-* attribute and then use serverside/clientside validation using a regular expression to make sure the format is correct.
Hope this helps a bit.
/Jan
If you expand the "Additional Settings" on the form field, there is a box where you can insert a regex. This will prevent the user from submitting a value that doesn't meet the regex. It won't stop them after "x" amount of characters but it will stop them from submitting it with the wrong set of characters. You can also include a tooltip with an example of what you are expecting the user to input.
Aaaah yes of course! I really should have thought of that. Sooo simple to implement :) #h5yr Donald!
/Jan
Jan - i should have explained myself in a little more depth. You have sites which allow you to enter your zip code then you would click a button which displays multiple addresses. This then allows the user to select the address applicable and fills in existing textboxes with relevant info.
This is the functionality im after but in Contour? If it needs to be created from scratch i would like to have some guidance on where to start with this and how to integrate?
Anyone?
is working on a reply...