Availability
This routine is available since katl-commons 3.0.8.
Syntax:
gadget_getSingleValue(argv, label)
Description:
Retrieves the value from a text, text area, select list or radio group.Parameters:
Parameter name | Required | Description |
---|---|---|
argv | Yes | the argv variable |
label | Yes | the label of the text/text area/select list/radio group |
Return type:
string
Example:
For any field that may contain only a single string type value we may use the gadget_getSingleValue routine. For the following script
gadget_createInput("Enter keyword", "demo");
we may obtain the field's value as in the next code sample:
string res = gadget_getSingleValue(argv, "Enter keyword"); //res = demo
See Also: