AnsweredAssumed Answered

Javascript - Programmatically Click Save Button

Question asked by dturton on Sep 29, 2017
Latest reply on Sep 29, 2017 by emha

I am trying to perform custom validation on a form using javascript and then programmatically clicking a Save and Submit button following validation. I followed the example in the community by found here Custom Validation .  However, when I programatically click the button the form will not submit (it does flash and return).


Here is the line that performs the click:   NWF$(".nf-disableonsubmit[value="+buttonName+"]").click();   


I know the click is working, because I put text in the confirmation message property of the button, and I get the alert.  Physically clicking the button causes the form to submit correctly.