You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pause form submission

Accepted answer
14
Views
3
Comments
edited May 4, 2018 3:39PM in Customer Portal 3 comments

Content

Hi,

I have a business requirement that after form validation has been done and the normal tests have been passed to pop up a modal box if a date field is in a particular range.  I want this to pause the form submission and if the submitter clicks 'yes I want to continue' go ahead with normal form submission and if they cancel just stop there.

The approach I have taken is to extend the DateInput and update the validateValue() method to do the test and if required pop the modal.  However the form just continues to submit anyway.  I can stop the submission by returning false but that isn't what I want.  I considered doing that then restarting the submission but I don't know if that is possible.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!