{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}The Dialogs plugin provides a few convenient functions to quickly show a dialog. It supports the following types of dialogs:
* Error dialog
* Info dialog
* Input dialog
* Question dialog
* Select dialog
* Warning dialog
Currently this plugin is only supported in the Smart Client. [ServoyForge|https://www.servoyforge.net] hosts a drop-in replacement for the Dialogs plugin adds support for the same type of Dialogs and this plugin, but then equally supported in both the Smart and Web Client. This Dialogs module can be found [here|https://www.servoyforge.net/projects/mod-dialog].{sub-section}\\
{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#showErrorDialog]\(dialogTitle, dialogMessage)
Shows a message
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClientservoy sSummary12%30%58%height: 30px;3Methods SummaryShows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows an input dialog where the user can enter data.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a selection dialog, where the user can select an entry from a list of options.Shows a selection dialog, where the user can select an entry from a list of options.Shows a message dialog with the specified title, message and a customizable set of buttons.Shows a message dialog with the specified title, message and a customizable set of buttons.functionservoy sDetail2100%height:30px2Methods DetailsshowErrorDialogname
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret
Shows a message dialog with the specified title, message and a customizable set of buttons.
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showErrorDialog]\(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInfoDialog]\(dialogTitle, dialogMessage)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInfoDialog]\(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\()
Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title)
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog()
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title)
dessIndent
Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title, msg)
dessIndent
Shows an input dialog where the user can enter data.
Returns the entered data, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;msg ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowInputDialogname
showInputDialog(dialog_title, msg, initialValue)
dessIndent
Shows an input dialog where the user can enter data.
{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showInputDialog]\(dialog_title, msg, initialValue)
Shows an input dialog where the user can enter data.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showQuestionDialog]\(dialogTitle, dialogMessage)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showQuestionDialog]\(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showSelectDialog]\(dialog_title, msg, optionArray)
Shows a selection dialog, where the user can select an entry from a list of options.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showSelectDialog]\(dialog_title, msg, options)
Shows a selection dialog, where the user can select an entry from a list of options.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showWarningDialog]\(dialogTitle, dialogMessage)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#showWarningDialog]\(dialogTitle, dialogMessage, buttonsText)
Shows a message dialog with the specified title, message and a customizable set of buttons.{td}{tr}{tbody}{table}\\
{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=showErrorDialog-String_String|class=node}{tr:id=name}{td}h6.showErrorDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showErrorDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage){span}{td}{tr}{tr:id=des}{td}{sub-section:showErrorDialog-String_String_des|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message
Returns the entered data, or nothing when canceled.
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowSelectDialogname
showSelectDialog(dialog_title, msg, optionArray)
dessIndent
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
prs
Parameters
sIndentdialog_title ;msg ;optionArray ;ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowSelectDialogname
showSelectDialog(dialog_title, msg, options)
dessIndent
Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.
Shows a message dialog with the specified title, message and a customizable set of buttons.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showErrorDialog-String_String_snc|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showErrorDialog-String_String_prs|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showErrorDialog-String_String_ret|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showErrorDialog-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showErrorDialog-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showErrorDialog-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showErrorDialog-String_String_StringArray|class=node}{tr:id=name}{td}h6.showErrorDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showErrorDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage, buttonsText){span}{td}{tr}{tr:id=des}{td}{sub-section:showErrorDialog-String_String_StringArray_des|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_StringArray_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showErrorDialog-String_String_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showErrorDialog-String_String_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_StringArray_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
\{[String]...} buttonsText -- Array of button texts.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showErrorDialog-String_String_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:showErrorDialog-String_String_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showErrorDialog-String_String_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showErrorDialog-String_String_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showErrorDialog-String_String_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showErrorDialog-String_String_StringArray_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showErrorDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInfoDialog-String_String|class=node}{tr:id=name}{td}h6.showInfoDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInfoDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage){span}{td}{tr}{tr:id=des}{td}{sub-section:showInfoDialog-String_String_des|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInfoDialog-String_String_snc|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInfoDialog-String_String_prs|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInfoDialog-String_String_ret|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInfoDialog-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInfoDialog-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInfoDialog-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInfoDialog-String_String_StringArray|class=node}{tr:id=name}{td}h6.showInfoDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInfoDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage, buttonsText){span}{td}{tr}{tr:id=des}{td}{sub-section:showInfoDialog-String_String_StringArray_des|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_StringArray_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInfoDialog-String_String_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInfoDialog-String_String_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_StringArray_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
\{[String]...} buttonsText -- Array of button texts.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInfoDialog-String_String_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:showInfoDialog-String_String_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInfoDialog-String_String_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInfoDialog-String_String_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInfoDialog-String_String_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInfoDialog-String_String_StringArray_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showInfoDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog|class=node}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInputDialog{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:showInputDialog_des|text=|trigger=button}{sub-section}{sub-section:showInputDialog_des|trigger=none|class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInputDialog_snc|text=|trigger=button}{sub-section}{sub-section:showInputDialog_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:showInputDialog_prs|text=|trigger=button}{sub-section}{sub-section:showInputDialog_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:showInputDialog_ret|text=|trigger=button}{sub-section}{sub-section:showInputDialog_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInputDialog_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInputDialog_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInputDialog_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog_sam|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog-String|class=node}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInputDialog{span}{span:id=iets|style=float: left;}\(dialog_title){span}{td}{tr}{tr:id=des}{td}{sub-section:showInputDialog-String_des|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_des|trigger=none|class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInputDialog-String_snc|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInputDialog-String_prs|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_prs|trigger=none|class=sIndent}\{[String]} dialog_title
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInputDialog-String_ret|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInputDialog-String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInputDialog-String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInputDialog-String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_sam|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog-String_String|class=node}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInputDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg){span}{td}{tr}{tr:id=des}{td}{sub-section:showInputDialog-String_String_des|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_des|trigger=none|class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInputDialog-String_String_snc|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInputDialog-String_String_prs|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_prs|trigger=none|class=sIndent}\{[String]} dialog_title
\{[String]} msg
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInputDialog-String_String_ret|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInputDialog-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInputDialog-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInputDialog-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_sam|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showInputDialog-String_String_String|class=node}{tr:id=name}{td}h6.showInputDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showInputDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, initialValue){span}{td}{tr}{tr:id=des}{td}{sub-section:showInputDialog-String_String_String_des|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_String_des|trigger=none|class=sIndent}Shows an input dialog where the user can enter data. Returns the entered data, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showInputDialog-String_String_String_snc|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showInputDialog-String_String_String_prs|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_String_prs|trigger=none|class=sIndent}\{[String]} dialog_title
\{[String]} msg
\{[String]} initialValue
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showInputDialog-String_String_String_ret|text=|trigger=button}{sub-section}{sub-section:showInputDialog-String_String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showInputDialog-String_String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showInputDialog-String_String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showInputDialog-String_String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showInputDialog-String_String_String_sam|trigger=none}{code:language=javascript}
//show input dialog ,returns nothing when canceled
var typedInput = plugins.dialogs.showInputDialog('Specify','Your name');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showQuestionDialog-String_String|class=node}{tr:id=name}{td}h6.showQuestionDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showQuestionDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage){span}{td}{tr}{tr:id=des}{td}{sub-section:showQuestionDialog-String_String_des|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showQuestionDialog-String_String_snc|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showQuestionDialog-String_String_prs|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showQuestionDialog-String_String_ret|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showQuestionDialog-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showQuestionDialog-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showQuestionDialog-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showQuestionDialog-String_String_StringArray|class=node}{tr:id=name}{td}h6.showQuestionDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showQuestionDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage, buttonsText){span}{td}{tr}{tr:id=des}{td}{sub-section:showQuestionDialog-String_String_StringArray_des|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_StringArray_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showQuestionDialog-String_String_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showQuestionDialog-String_String_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_StringArray_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
\{[String]...} buttonsText -- Array of button texts.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showQuestionDialog-String_String_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:showQuestionDialog-String_String_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showQuestionDialog-String_String_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showQuestionDialog-String_String_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showQuestionDialog-String_String_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showQuestionDialog-String_String_StringArray_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showQuestionDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showSelectDialog-String_String_ObjectArray|class=node}{tr:id=name}{td}h6.showSelectDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showSelectDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, optionArray){span}{td}{tr}{tr:id=des}{td}{sub-section:showSelectDialog-String_String_ObjectArray_des|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_ObjectArray_des|trigger=none|class=sIndent}Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showSelectDialog-String_String_ObjectArray_snc|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_ObjectArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showSelectDialog-String_String_ObjectArray_prs|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_ObjectArray_prs|trigger=none|class=sIndent}\{[String]} dialog_title
\{[String]} msg
\{[Object]\[]} optionArray
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showSelectDialog-String_String_ObjectArray_ret|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_ObjectArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showSelectDialog-String_String_ObjectArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_ObjectArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showSelectDialog-String_String_ObjectArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_ObjectArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showSelectDialog-String_String_ObjectArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_ObjectArray_sam|trigger=none}{code:language=javascript}
//show select,returns nothing when canceled
var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name','jan','johan','sebastiaan');
//also possible to pass array with options
//var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name', new Array('jan','johan','sebastiaan'));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showSelectDialog-String_String_StringArray|class=node}{tr:id=name}{td}h6.showSelectDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showSelectDialog{span}{span:id=iets|style=float: left;}\(dialog_title, msg, options){span}{td}{tr}{tr:id=des}{td}{sub-section:showSelectDialog-String_String_StringArray_des|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_StringArray_des|trigger=none|class=sIndent}Shows a selection dialog, where the user can select an entry from a list of options. Returns the selected entry, or nothing when canceled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showSelectDialog-String_String_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showSelectDialog-String_String_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_StringArray_prs|trigger=none|class=sIndent}\{[String]} dialog_title
\{[String]} msg
\{[String]...} options
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showSelectDialog-String_String_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:showSelectDialog-String_String_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showSelectDialog-String_String_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showSelectDialog-String_String_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showSelectDialog-String_String_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showSelectDialog-String_String_StringArray_sam|trigger=none}{code:language=javascript}
//show select,returns nothing when canceled
var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name','jan','johan','sebastiaan');
//also possible to pass array with options
//var selectedValue = plugins.dialogs.showSelectDialog('Select','please select a name', new Array('jan','johan','sebastiaan'));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showWarningDialog-String_String|class=node}{tr:id=name}{td}h6.showWarningDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showWarningDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage){span}{td}{tr}{tr:id=des}{td}{sub-section:showWarningDialog-String_String_des|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showWarningDialog-String_String_snc|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showWarningDialog-String_String_prs|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showWarningDialog-String_String_ret|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showWarningDialog-String_String_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showWarningDialog-String_String_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showWarningDialog-String_String_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showWarningDialog-String_String_StringArray|class=node}{tr:id=name}{td}h6.showWarningDialog{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}showWarningDialog{span}{span:id=iets|style=float: left;}\(dialogTitle, dialogMessage, buttonsText){span}{td}{tr}{tr:id=des}{td}{sub-section:showWarningDialog-String_String_StringArray_des|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_StringArray_des|trigger=none|class=sIndent}Shows a message dialog with the specified title, message and a customizable set of buttons.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showWarningDialog-String_String_StringArray_snc|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_StringArray_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showWarningDialog-String_String_StringArray_prs|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_StringArray_prs|trigger=none|class=sIndent}\{[String]} dialogTitle -- Dialog title.
\{[String]} dialogMessage -- Dialog message.
\{[String]...} buttonsText -- Array of button texts.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showWarningDialog-String_String_StringArray_ret|text=|trigger=button}{sub-section}{sub-section:showWarningDialog-String_String_StringArray_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showWarningDialog-String_String_StringArray_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_StringArray_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showWarningDialog-String_String_StringArray_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_StringArray_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showWarningDialog-String_String_StringArray_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:showWarningDialog-String_String_StringArray_sam|trigger=none}{code:language=javascript}
//show dialog
var thePressedButton = plugins.dialogs.showWarningDialog('Title', 'Value not allowed','OK');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
Shows a message dialog with the specified title, message and a customizable set of buttons.
Returns pressed button text, in case window is closed without pressing any button return value depends on client type.
prs
Parameters
sIndentdialogTitleDialog title.dialogMessageDialog message.buttonsTextArray of button texts.ret