Discussion

2
Replies
184
Views
Viswa_CTS Member since 2011 2 posts
Cognizant Technology Solutions
Posted: 4 years ago
Last activity: 4 years 3 months ago
Closed

Modify UI element configuration based on an event

Hello everyone,

I have a requirement where configuration of a UI element needs to be modified based on selection of a checkbox. Other than defining multiple UI elements for the same property and displaying only 1 of them conditionally can work for me but this is not really a clean way of implementing it. In other programming languages, we can modify the configuration of a UI element from JS or by making server calls. Is there a similar functionality provided in Pega 7?

Example, on checking a checkbox, format button should become Strong from Default.

Can we write JS for it? If so, how could we refer to the element we are looking for and how do we call our function? Or can Activities do it? How to get the handle of the UI element? Any way other than defining in an Activity?

Project Delivery
Moderation Team has archived post
Share this page LinkedIn