I cant really get a grip at how to use the validation in Doc2Form. Can someone please give a quick guide with some example code?
Now, when all the fields that is not filled in correctly, the form only shows a list that says "The field is required" as many times as their is fields not validating.
If you have the form posting from the front end to the admin system, the form mimics the fields of the admin form for that page right? Ok, so if this is the case, the initial validation you apply to the doc type fields for that page will also be mimicked by the front end form. The autoform or doc2form basically copies the doctype values from the admin area.
I may be corrected on this but I found out by trial and error through the same problem as you :-)
Validation in Doc2Form
I cant really get a grip at how to use the validation in Doc2Form. Can someone please give a quick guide with some example code?
Now, when all the fields that is not filled in correctly, the form only shows a list that says "The field is required" as many times as their is fields not validating.
Thanks!
Hi There,
If you have the form posting from the front end to the admin system, the form mimics the fields of the admin form for that page right?
Ok, so if this is the case, the initial validation you apply to the doc type fields for that page will also be mimicked by the front end form. The autoform or doc2form basically copies the doctype values from the admin area.
I may be corrected on this but I found out by trial and error through the same problem as you :-)
Rog
Ah, that sounds logical. Thank you!
is working on a reply...