Versions Compared

Key

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

This function returns an array of all input fields on the screen.

Example:

The example below turns all input fields with a length of 1 into checkboxes.

Code Block
javascript
javascript

var fields = getInputFields();
for (var i = 0; i < fields.length; i++) {
  var field = fields[i];
  if (field.maxLength == 1) {
    applyProperty(field, "field type", "checkbox");
    applyProperty(field, "checked value", "X");
  }
}