peterpp Posted August 6, 2014 Share Posted August 6, 2014 HI, How to do individual field validation in Form Builder module? I want error message to display near field. Regards, Pravin Link to comment Share on other sites More sharing options...
cstevensjr Posted August 6, 2014 Share Posted August 6, 2014 (edited) I believe validation is done based on what type of field you are using. There are other validations done based on whether the field is required or not and a host of other criteria. The fields where you should enter required data will display where the error is. When you are creating a form, you can easily test out what's gonna happen by using the Preview tab under Forms. This should also be filed under the Form Builder section. Edited August 6, 2014 by cstevensjr 1 Link to comment Share on other sites More sharing options...
peterpp Posted August 6, 2014 Author Share Posted August 6, 2014 I believe validation is done based on what type of field you are using. There are other validations done based on whether the field is required or not and a host of other criteria. form-builder-form-error.png The fields where you should enter required data will display where the error is. When you are creating a form, you can easily test out what's gonna happen by using the Preview tab under Forms. This should also be filed under the Form Builder section. Hi cstevensjr, Thanx for info. I can view errors in preview. But actually on page, form shows this error if required field is missing. Error is this "One or more errors prevented submission of the form. Please correct and try again." The error is common for all fields. Regards, Pravin Link to comment Share on other sites More sharing options...
peterpp Posted August 6, 2014 Author Share Posted August 6, 2014 Thanx all. I have edited FormBuilderProcessor.php file wrongly. Now validation is happening. Regards, Pravin Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now