Disable Page validation for a specific button in a form
I have a simple form with two input fields, "Submit" button and "Cancel" button.
The two input fields have SAP validators attached to them.
I want to disable the validators when the user clicks the "Cancel" button.
In ASP I can write:
(When "cmdCancel" is the ID of the button)
I tried to write the following code in my Portal Component:
cmdCancel.ScriptingEvents("BUTTONCLICK") = "Page_ValidationActive=false;"
How can I disable the validators when clicking this specific button?
PDK version 2 ; EP6 SP15