Forum Discussion
4 Replies
- TomMustoQrew CadetOk, if there is no other javascript interfering with the alert, try this:
"javascript:void(alert ('1. You must select all healthcare options before totals will calculate.\\n2. A PEG Company and start date/effective date are required in order for the Healthcare Option to populate.'));"ā
The addition of the void function should keep you on the page after "OK" is pressed on the alert.
------------------------------
-Tom
------------------------------- AlexusHillQrew MemberThanks, but unfortunately the form is still saving. I've tried that before and just now with the no success.
------------------------------
Alexus Hill
------------------------------- TomMustoQrew CadetI put the javascript void formula above into a Formula - URL field, went into edit mode on a record, pressed the button, and then pressed "OK" on the alert popup. I was able to stay on that same record in edit mode. If this is not working for you, there must be something else going on with your javascript code or the button. You would have to provide more detail on how the button is set up and any other javascript code that might be interacting with the form.
------------------------------
-Tom
------------------------------