This content has been archived.

Table of Contents

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

25% found this useful

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.