gadget_getSingleValue

Description

Retrieves the value from a text, text area, select list or radio group.

Parameters

Return Type

String

Example

For any field that may contain only a single string type value we may use the gadget_getSingleValue function. 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

Peacock