FormBuilder validation with UDT on multi-page form
Posted: Sun Apr 12, 2015 12:16 am
Hi,
I have a Formbuilder form which has 2 pages. An option selected on the first page determines which fields are displayed on the 2nd page. I have this working fine using jQuery.
However, I want to do some form validation on the 2nd page which can't be done using the Formbuilder validation, so I need to call a UDT on form submission. However, the UDT gets called on submission of each page (ie. when clicking Next from page 1 to page 2 of form). How do I check in the UDT if the form page being submitted is page 2 or page 1?
I basically need to be able to test the $this_page value from the form, but I can't access this variable from the UDT.
Thanks!
I have a Formbuilder form which has 2 pages. An option selected on the first page determines which fields are displayed on the 2nd page. I have this working fine using jQuery.
However, I want to do some form validation on the 2nd page which can't be done using the Formbuilder validation, so I need to call a UDT on form submission. However, the UDT gets called on submission of each page (ie. when clicking Next from page 1 to page 2 of form). How do I check in the UDT if the form page being submitted is page 2 or page 1?
I basically need to be able to test the $this_page value from the form, but I can't access this variable from the UDT.
Thanks!