Get and Set a property value using JavaScript
What to do if you want to get or set the value of a property using JavaScript? Set the value of a property using JavaScript To set a value to a property use the pega.api.ui.actions.setValue function defined on the webwb/pzpega_api_ui_actions.js text file rule. pega.api.ui.actions.setValue("MyPage.MyProperty", "MyValue", false, null) The third parameter is a boolean which indicates whether the second parameter is a property reference (uses the dot notation) or it's a string constant. pega.api.ui.actions.setValue("MyPage.MyProperty", "AnotherPage.AnotherProperty", true, null) The last parameter is the event object, if you pass it to the function, the properties will be taken from the context of the event. The advantage of using this function over setting it manually with vanilla JavaScript is that the elements that are observing this property will react immediately (ex. on-client visibility). Get the value of a property using ...