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
- P6 Progress Reporter completely integrated into P6 Team Member - August 15, 2017
- Primavera P6 Professional for EPPM Popup 16.2 : The appropriate industry for your organization has not yet been select in admin preferences - August 15, 2017
- Primavera P6 Background Job Error:Creating job Symon Failed to add Database Job, Check the settings table for valid interval values for dbms_scheduler - August 14, 2017