Expand my Community achievements bar.

required fields

Avatar

Former Community Member
im making a form and every field is required but it is just a print button not a submit button. how do i make the fields required? i thought i have as required but when i hit the print button with none of the fields filled in it still prints. help!
2 Replies

Avatar

Former Community Member
Hi!



I'm having the same problem.



I have read several topics discussing this issue but have not found a simple solution. The submit button automatically checks for required fields so it doesn't make sense that it is so complicated to set the print button to do the same.



I'd appreciate any suggestions.



Thanks,



Emma

Avatar

Former Community Member
Hi,



you can use execValidate Function to validate your form.

execValidate returns true or false.



if you set the "validation Script message" and "Empty message" in the properties of your required field so the execValidte function will show a messagebox with the message.



for example



form1.execValidate(); //validates the whole form



in my form the form1 is the root element of the tree.



Andrej