This content has been archived.

setValue: Public JS API for control actions


Set any target property from a source property or a literal constant.


pega.api.ui.actions.setValue(target, source, isProperty, event);


This API accepts a JavaScript object which can have the following key-values.

  • target: The target property reference
  • source: A property reference or a literal constant.
  • isProperty: Indicates that whether the source is a property or a literal constant. The default value of isProperty is false.
  • event: The event refers to a DOM eventObject which is required to get the context page when passing scalar properties.
Suggest Edit

20% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.