Forum Discussion
AmyGosz1
4 years agoQrew Trainee
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
------------------------------
------------------------------
Amy Gosz
------------------------------
MarkShnier__You
Qrew Legend
4 years agoI 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
------------------------------
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
------------------------------
- MarkShnier__You4 years ago
Qrew Legend
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
------------------------------- MikeTamoush4 years agoQrew EliteThere 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
------------------------------
- AmyGosz14 years agoQrew Trainee
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
------------------------------