Search
⌃K
Links
Comment on page

dialog

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.
The function can be executed only on the client. Learn more about execution context​

Syntax

dialog(string, string, [string])

Return

string

Examples

dialog(title, message, answerOptions) To pop up a dialog with answer options.
Add this script to a button.
1
let title := "Delete record";
2
let message := "Should this record be deleted? Are you 100% sure?
3
It will be gone forever. You cannot get it back. It will be gone and away."
4
let answerOptions := ["Yes, get rid of it.", "No! I still need it!"]
5
if dialog(title, message, answerOptions) = "Yes, get rid of it." then
6
delete this
7
end
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

See also

​alert, which opens a pop-up message box.
Last modified 1yr ago