Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Work with dialog functions

Pass a return value to a form (setReturnValue)

Scroll Prev Top Next More

The setReturnValue function allows passing values from PHP dialog functions to the JobRouter form. The parameters are first a key and then the corresponding value. You can define any number of return values.

Parameter

Type

Description

$key

string

Key of the parameter

$returnValue

string

Value of the parameter

The function does not return a value.

Example:

$this->setReturnValue('firstname', 'John');

$this->setReturnValue('lastname', 'Doe');