Discussions

 View Only
Expand all | Collapse all

Confirm button to show pop up message box

  • 1.  Confirm button to show pop up message box

    Posted 06-15-2022 09:57
    I am unable to figure this out. I was able to create the button itself, but not sure what code is needed to open a pop up message box. Here is what I have so far:

    "<a style=\"background: #4285f4; border-radius: 5px; padding: 8px 20px; color: white; display: inline-block; font: normal 700 24px; text-decoration: none;\">Confirm</a>"

    I need the button to also open a pop up box to display a message before the user actually saves the record. The button does not need to actually save the record, just display a message and have an 'OK' box to click.

    All I can find is Javascript and I know that can't be used anymore.



    ------------------------------
    Amy Gosz
    ------------------------------


  • 2.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 10:38
    Edited by Steven Shweky 06-15-2022 10:40


  • 3.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 10:41
    Maybe you can leverage form rules to Display a Message when any of selected fields are changed.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 4.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 10:43
    I had that, but my manager wants them to click a button to show the message.

    ------------------------------
    qb pipelines
    ------------------------------



  • 5.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 11:24
    OK, so here is a low tech Plan B.

    Create a new form which is super mini, like just a message.  Make the button to open the same record in view mode in dfid=10 (or whatever the super mini form # is.  Set the button to open in pop up.  It will be a smaller than normal full window size.

    But then the user would have to close that box.  I don't believe there is a non javascript way to close the code.​  (Maybe with a Code Page")

    But I'm not understanding in your workflow what would force the user to click the button to see the pop up.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 6.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 11:34
    There are two fields on the form: 'Related Account Number' and 'Other Account Number'. They only  need to populate the 'Other Account Number' field. The pop up message would state "You are moving Communications from 'Other Account Number" to 'Related Account number'. The message is to have them confirm that they entered the correct number, sort of like a double check before saving the form. The pop up box just needs to have an 'OK' on it to close it.

    ------------------------------
    Amy Gosz
    ------------------------------



  • 7.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 12:02
    To confirm, with the code I already have which did create a button...is there no 'onclick' code that can be added? If so, how would it be written? I would even be happy to have the button create the message on the form itself (ie: show a formula field with the message) instead of a pop up box.

    ------------------------------
    Amy Gosz
    ------------------------------



  • 8.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 12:42
    I believe the onclick uses Javascript. 

    What if you ask the users to push a button and all the button does is populate a checkbox field or a formula rich text field which edits the record and puts a red message on the record saying that they have viewed the message.

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 9.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 12:46
    The form rule pop up would seem to be pretty close to what you want.  I'm out of new ideas ......

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 10.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 12:50
    There is a way to auto close the popup with a code page (I can post the link if you decide to try it), but it only works on add record or edit record, after you click save. So I'm not sure that is helpful.  If you go with Mark's strategy, you could always just put a note 'Please close this popup to continue' or something.

    Additionally, if you don't need anything specific from the record on your popup, and just need a simple message, you could use Mark's idea but just use a rich text page, versus a new form.

    ------------------------------
    Mike Tamoush
    ------------------------------



  • 11.  RE: Confirm button to show pop up message box

    Posted 06-15-2022 12:57

    The button field I created is a Rich Text formula field and does show the button. What code needs to be added so when they 'click/push' the button, it shows my formula Rich Text field with the needed message on the form. Basically, the button would do what the Form Rule does, shows a field when pushed. If this can't be done, then I will have to go back to the Form Rules option.
    Again, here is my current code which shows the button only:
    <a style=\"background: #4285f4; border-radius: 5px; padding: 8px 20px; color: white; display: inline-block; font: normal 700 24px; text-decoration: none;\">Confirm</a>"



    ------------------------------
    Amy Gosz
    ------------------------------