Versions Compared

Key

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

...

In order to help you retrieve the selected value(s) faster, we have created more pluginapp-specific SIL routines.

CategoryUsed withRoutineReturn value
Single value fields
  • 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 a checkbox it will return "checked" if the checkbox was selected or an empty string if not.
Multi value fields
  • multi select list
  • checkbox group
BA_getMultiValues(argv, label)String array representing the selected options.
  • file upload
    (available in v. 2.5 and above)
String array containing pairs of original filename and uploaded path. Even indices will contain original filenames, while odd indices will contain an uploaded path.
See Examples for usage.
Checkbox
  • single checkbox
BA_isChecked(argv, label)A method for checking whether a checkbox is selected or not. Returns a boolean: true if the box was checked, false otherwise.

Date

(since v2.0.8 and 2.6.1)

  • date picker
  • date time picker
BA_getDateValue(argv, label)This 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.

...

You can also use these in conjunction with array-specific routines like arrayGetElement and arrayElementExists. For a list of available routines that manipulate arrays, see Array Routinesroutines.

Anchor
ValidatingScreenFields
ValidatingScreenFields

...