Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MULTI_SELECT_LIST, CHECKBOX_GROUP
CategoryUsed withRoutineReturn value
Single value fieldsTEXT, TEXT_AREA, SELECT_LIST, RADIO_GROUP, SINGLE_CHECKBOX
  • text
  • text area
  • select list
  • radio group
  • single checkbox(optional)
BA_getSingleValue(argv, label)String representing the value entered or the selected option for the given label. For checkbox it will return "checked" if the checkbox was selected or an empty string otherwise.
Multi value fields
  • multi select list
  • checkbox group
BA_getMultiValues(argv, label)String array representing the selected options.
FILE_UPLOAD
  • file upload (since v. 2.5)
String array containing pairs of original filename and uploaded path. Even indices will contain original filenames, while odd indices will contain uploaded path. See Examples for usage.
CheckboxSINGLE_CHECKBOX
  • single checkbox
BA_isChecked(argv, label)Convenience method for checking whether a checkbox is selected or not. Returns a boolean: true if the box was checked, false otherwise.
Date
  • date picker
  • date time picker
BA_getDateValue(argv, label)Will retrieve a date value from the argv array. Note that for the date time picker, the value in the argv variable uses the user's time zone. BA_getDateValue will convert this value from the user's time zone to the server time zone.
Note

These methods are only available in versions 1.0.1+ and 2.0.1+

...

For example, take the following Screen Script:

Code Block
return BA_createCheckboxGroup("checkbox group", {"o1", "o2", "o3"}, {"o1", "o2"}, false);

...