After clicking the "submit" button on my PDF form, I want to perform a specific action (such as making a field readonly) based on whether the form validation and submission processes are successful:
if (form.isValid()) {
submitForm(...);
if (form.wasSubmittedSuccessfully()) {
//doSomething();
}
}
I am curious if there is a straightforward way to incorporate form.isValid()
(ensuring all required fields are filled out and formatted correctly) and form.wasSubmittedSuccessfully()
into the code above.