Versions Compared

Key

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

...

  • obj – the object or element to which design property will be applied. This could also be an element ID (string)
  • propName – name of the designer property to apply to the object.
  • propValue – value of the designer property to apply to the object.

Example:

The code below changes a textbox to a date field by changing the design field type designer property into a date field rather than textboxrepopulates a select box (drop-down) widget with new choices:

Code Block
javascript
javascript
applyProperty("Dropdown1", "choices", "one,two,three");  // specify drop-down choices
applyProperty("Dropdown1", "choice values", "1,2,3");  // specify values for drop-down choices
applyProperty("Dropdown1", "field type", "select box");  // reapply "field type" to render with new choice settings