Discussion

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?

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
June 21, 2016 - 10:44am

Hi
I notified the relevant team to look into this and reply to you.

Regards
dimis

Pega
June 23, 2016 - 5:09am

you can write a custom javascript function and use runScript action on checkbox change event to execute that function