Discussion
2
Replies
354
Views
Tech Mahindra
Posted: November 5, 2015
Last activity: November 6, 2015
Closed
How to Validate the data on the Form before opening a modal window on the form submit
I am having the requirement that on the submit of the form we need to open an Modal window I have did it by calling an Local action on the Action event click it was working fine but the form is not getting validated before opening an modal window. We need to validate the form first if every thing is fine on the form then modal window need to open. Could any one please suggest how to achieve this.
Hi,
I cant think of a simple configuration that does your requirement, assuming I understood it right. Unfortunately Pega doesnt give a scope to use a when condition based on which we could perform actions. It has its own challenges.
One way that you could do is to run javascript on click , do an ajax call to an activity which validates and on the callback see if you have no errors and if so launch the modal dialogue. But thats doing too much.
I would suggest to look at what you are trying to do as a business scenario and suggest different options that could be acheived using OOTB.
Cheers,
Chiru