This function allows you to access values of form elements.
Parameter |
Type |
Description |
|---|---|---|
$dialogElementName |
string |
Name of dialog element |
The function returns the value in a form element of type list and SQL list as a single-line array, in which the key includes the value and the value includes the display value. All other types return a value as text.
Please note: The function can only be used as action rules of user steps. In addition, the function can only access values of form fields but can not access values of subtable view fields.
Example:
…
//Read values from a textbox
$lastname = $this->getDialogValue('lastname');
//Read selected value from a textbox
$listValue = $this->getDialogValue('list'); //this returns [value => displayValue]
$displayValue = array_values($listValue)[0];
$value = array_keys($listValue)[0];
…