Custom Dialogs
Introduction
Creating Dialogs
var customDialog = scopes.svyCustomDialogs.createCustomDialog(
'myStyle',
'Change password',
'Please enter you current and a new password:',
scopes.svyCustomDialogs.DEFAULT_ICON.INFO,
['Cancel', 'OK']);
customDialog.addPasswordField('Current password:');
customDialog.addPasswordField('New password:');
customDialog.addPasswordField('New password repeat:');
customDialog.showDialog();
if (customDialog.buttonClickedText != 'OK') {
return;
}
var result = customDialog.getResult();
application.output('Current password is ' + result[0]);
application.output('New password is ' + result[1]);
application.output('New password repeat is ' + result[2]);API overview
Last updated
Was this helpful?