Question

How to Run an Activity on Check and Uncheck of a checkbox in PEGA 7.4

I am trying to run an activity on checking of the checkbox So in PEGA can we detect whether the checkbox is checked or not like setting boolean value to true and false.

Can Someone please provide me an example with screenshot if possible as I tried it but it is'nt working

Correct Answer
December 4, 2018 - 12:19pm

Hi, It must be pretty straight forward doing this as you would be with other controls. If you have boolean property in your case map it to checkbox control and in the action choose what you want to do with it when selected and not selected in an activity. If you want to run activity immediately as you select, you must "Post value" but if you are going to run as part of your "Submit" action you don't need to post.

In the above sample activity exits when checkbox is not selected. But there could be another step if there need to be different action when not selected.

Hope it helps!

 

Comments

Keep up to date on this post and subscribe to comments

December 4, 2018 - 11:24am

So far as I was aware, this should be the same as other controls.

In the Properties for the checkbox, go to the Actions tab

- Create an action set

- Add an event

- Then Add an action (specifying "Run Activity")

Is this what you already tried?

Or did you mean something different?

Pega
December 4, 2018 - 12:19pm

Hi, It must be pretty straight forward doing this as you would be with other controls. If you have boolean property in your case map it to checkbox control and in the action choose what you want to do with it when selected and not selected in an activity. If you want to run activity immediately as you select, you must "Post value" but if you are going to run as part of your "Submit" action you don't need to post.

In the above sample activity exits when checkbox is not selected. But there could be another step if there need to be different action when not selected.

Hope it helps!

 

December 5, 2018 - 11:40am

Thanks a lot Chitra !! That really helped

December 6, 2018 - 8:21am