Versions Compared

Key

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

This function is used to apply a designer property in customization scripts. 

Applying a property does not always trigger the element to be re-rendered.  To force rendering of the element, reapply the "field type" property.

Parameters:

  • 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.

...

Code Block
javascript
javascript

var myTextBox = getObj("TextBox1");   
applyProperty("Dropdown1", "choices", "one,two,three");  // specify drop-down choicesapplyProperty("Dropdown1", "choice values", "1,2,3");  //get thespecify textboxvalues objectfor referencedrop-down choices
applyProperty(myTextBox"Dropdown1", "field type", "dateselect fieldbox");  // reapply "field type" to render with new choice settings