Forum Discussion

Re: Alert popup should not save

There is a help button that is there for the user to press that will trigger the popup alert.

------------------------------
Alexus Hill
------------------------------

4 Replies

  • TomMusto's avatar
    TomMusto
    Qrew Cadet
    Ok, 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
    ------------------------------
    • AlexusHill's avatar
      AlexusHill
      Qrew Member
      Thanks, but unfortunately the form is still saving. I've tried that before and just now with the no success.

      ------------------------------
      Alexus Hill
      ------------------------------
      • TomMusto's avatar
        TomMusto
        Qrew Cadet
        I 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
        ------------------------------