User Tools

Site Tools


Sidebar

misc:confirm

confirm()

Shorthand function for the ExtendScript default Window.confirm(). For applications other then RoboHelp, you can use either confirm() or Window.confirm(). This shorthand is added because RoboHelp doesn't support it out of the box.

Usage

if(confirm("Shall I continue?")) {
  //Do something if confirmed
}

Parameters

Parameter Data type Required Description
message string True The string for the displayed message
noAsDflt boolean When true, the No button is the default choice. Default is false, meaning that Yes is the default choice.
title string A string to appear as the title of the dialog, if the platform supports a title. The default title string is Script Alert

Return Values

Value Meaning
true The user selected Yes
false The user selected No
misc/confirm.txt · Last modified: 2017/05/25 13:31 (external edit)