Question
Gurunanak Institute of Technology
IN
Last activity: 11 Nov 2024 6:15 EST
How to configure a requirement where only one checkbox can be selected, and the checkbox details display on the next page?
Brief about how I created the records and checkbox:
1) I created a data type called "Policy"(cofigured the source) in which I entered fields like insure,insurer Id etc.
2) In the step of the casetype called "Registration" I used data relationship called "query" and "list of records" where I chose "D_PolicyList".
3) Later I went into Section of user Interface and added a new column where I set the label as "Select Policies" and under that I added a checkbox with property created using crosshair symbol i.e. "IsSelected"(boolean).
I can't see multiple rows to set their checkbox as disable on condition.
Requirement 1: The user must select one and only one checkbox

Requirement 2: The selected chekbox details must be displayed in the next step

***Edited by Moderator Marije to change type from Pega Academy to Product; update capability tags***

Hi @neelimakonasani ,
For Requirement 1 : For achieving only one policy can be selected , one way to achieve this is on change of checkbox if value is true then explicitly setting the IsSelected to false in all pages of that list except the current page context.
For Requirement 2 : In post processing of flow action [Policy selection screen] , call the data transform to identify the page that has IsSelected to true (You may use IndexInPageList to get index of that page ) & copy it to another page [Lets say SelectedPolicy] and you can show the data in next step screen based on context of this page SelectedPolicy
Do share your thoughts incase above do not meet your requirement.