Comment on page
To pop up a dialog with answer options
This function will trigger a pop-up with notes created by you. You can add a selection of options with answers to choose from, for example, Yes or No.
The running script is put on hold until the user picked an answer.
The result can be stored in a field or variable and therefore be processed in the further execution of the script.
dialog(string, string, [string])
dialog(title, message, answerOptions)To pop up a dialog with answer options.
Add this script to a button.
let title := "Delete record";
let message := "Should this record be deleted? Are you 100% sure?
It will be gone forever. You cannot get it back. It will be gone and away."
let answerOptions := ["Yes, get rid of it.", "No! I still need it!"]
if dialog(title, message, answerOptions) = "Yes, get rid of it." then
Result: You should get this popup. By clicking Yes this record will be deleted.
You see a headline, a body text and 2 buttons, all created with this function