BA_getMultiValues
The use of this function requires the Power Actions add-on be installed and licensed.
Description
Gets the value entered or the selected option for the given field label.
Parameters
Return Type
String []
String array representing the selected options.
Examples
Example 1
For a script that creates a multi select list like the following:
BA_createMultiSelectList("Multiselect", {"a", "b", "c", "d", "e"}, {"a", "c", "e"}, false, true, "This field is required");
The selected values may be obtained with the BA_getMultiValues function:
string [] res = BA_getMultiValues(argv, "Multiselect");
//res[0] = a
//res[1] = c
//res[2] = e
//The function has returned in this case an array of three strings, "a", "c" and "e".
Example 2
Using a file upload field.
BA_createFileUpload("File 1", false, true, "Description for file 1");
We may obtain the uploads field's value as in the next code sample:
With a file upload field the function will return a string array containing pairs of original filename and uploaded path. Even indices will contain original filenames, while odd indices will contain an uploaded path.