Get Label (displayed name)¶
Function that let’s you get the Lable of a variable. The Label is returned by the function as a string.
The Label is the name of a variable as displayed to the user.
Syntax¶
To obtain the Label associated with the variable nameOfVariable, you would
use the following snippet:
var myVar = 'nameOfVariable';
var varLabel = ctx.getLabel(myVar);
Warning
This function only works inside a onResult context.