My requirement is when user clicks submit button two business should execute, that is two actions should perform in single button click.
In
java script i executed the below code when the user clicks the submit button.
In the validate method, list of values should validate in external system and display the message as Amount is validated in the screen.
In the PDFOpen method open the PDF document in separate window based on validation of data(dynamic data )
Here the problem before the validate method complete PDFOpen method s executing, so that PDF document is opening before the validation. Could you please suggest how to design for the requirement.
Thanks in Advance.