Aug 20th, 2010, 7:10 AM
Hi Ben/All
I am sure I am missing something really obvious but here is my problem.
I like to have a set of initial values in my form so that people filling in the form can't go wrong. This is especially important on long lists on several columns of the same thing. However the JS validator see the example data as correct data.
E.g.
I have a three column form for prescriptions the headings are:
Item name, Item strength, Item quantity
Only the first row are required fields but there are 11 more rows for large orders.
If I put example data in the first row then the JS validator sees the fields as completed and allows submission. Is there a simple way to check if the field matches the example data and if so throw a validation error.
I could write my own validation script but I'd like to use the bundled JS validator.
Thanks
Tim
I am sure I am missing something really obvious but here is my problem.
I like to have a set of initial values in my form so that people filling in the form can't go wrong. This is especially important on long lists on several columns of the same thing. However the JS validator see the example data as correct data.
E.g.
I have a three column form for prescriptions the headings are:
Item name, Item strength, Item quantity
Only the first row are required fields but there are 11 more rows for large orders.
If I put example data in the first row then the JS validator sees the fields as completed and allows submission. Is there a simple way to check if the field matches the example data and if so throw a validation error.
I could write my own validation script but I'd like to use the bundled JS validator.
Thanks
Tim