How to turn off ADF form validation
Default the validation is turned on for UI component in ADF, that is true for adf-form as well. Consider a User registration form, when a user enters data and submits it, an action triggered to the server and creates an account. Most of the time we required validation before the form has been submitted like date format should be MM/DD/YY and age should be a number. But for some situation we really don’t require validation like, deleting the form, navigate to another page, or resetting the form.
In the below example, I’ve tried to delete an empty form but it throws validation error and prints each UI component in the form is empty.
To turn off the form validation while clicking the Delete button, Set the property immediate to true in the property inspector as shown below. After that, ADF will not validate the form whenever Delete action triggered.
There is one exception here, if you setting the immediate property to any of the input component (inputText) in the Form then the validation occurs . I will cover the topic briefly in my another post.
The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.
Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
Latest posts by Govind
- Is it possible to logout Primavera P6 through SQL Query? - February 16, 2018
- How to Create Primavera P6 EPPM Database schemas in Microsoft SQL Server - February 15, 2018
- Configure Windows Firewall for Microsoft SQL Server 2017 – Part 4 - February 14, 2018