Question5Replies3244Views JeffGo Member since 2017 14 posts Appriss, Inc Posted: September 24, 2018Last activity: October 24, 2018 Closed Solved How to set and unset checkbox by clicking on associated field valueSo, I've got a table that displays some data. On the left side, there is a checkbox which sets the boolean value .pySelected. This works fine.But I also want to allow the user to click on the text in the row to set and unset the checkbox with the associated .pySelected property. I'm having trouble with this.Steps taken:Create an action set on the cell's field Event: ClickAction: Set Value: Property .pySelected; Value: !.pySelectedThis failed with an "Invalid Page Name" and "Invalid property reference." Well, that does sort of make sense. But I'm not sure how to set it to its own inverse.Create an action set on the cell's field Event: ClickAction: Set Value: Property .pySelected; Value: "false"; When Other Property .pySelected = "true"Set Value: Property .pySelected; Value: "true"; When Other Property .pySelected = "false"This allowed me to submit the change, save, and then launch the page. But when clicking on the text in the table, it did not select or deselect the checkbox.Create an action set on the cell's field Event: ClickAction: Set Value: Property .pySelected; Value: "true"This actually worked to set the checkbox. But, of course, it did not unset the checkbox when I clicked it again.***Edited by Moderator Marissa to update platform capability tags**** Low-Code App Development User Interface ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years agoMounikaThatikonda PEGA replied to JeffGoHi Jeff, Have you checked the value of pySelected in clipboard after clicking on the checkbox second time? Are you performing a post value or a refresh section after setting the value? Regards, Mounika Posted: 2 years agokomah PEGA replied to JeffGoHi Jeff, Thanks for posting on PSC. 1.Firstly check what is the value set on clipboard when user click on the text in the row. 2.If the value is blank try adding post value after all actions and do a refresh section,see if this works. Regards, Hepsi Posted: 2 years agoJeffGo Appriss, Inc replied to JeffGoThank you for the suggestions. Here are my new attempts: Set Value: .pySelected -> true When .pySelected != true (can't set to false, because when initialized .pySelected is blank) Set Value: .pySelected -> false When .pySelected = true Post value (I tried without this and then with this post) Refresh- This section Unfortunately, this did not work either. I did watch the clipboard. Accepted Solution Posted: 2 years agoFaizanFayaz PEGA replied to JeffGoHi Jeff, I tried it locally and I was able to achieve the end result. If you add a refresh section or refresh list, make sure to click "disable submit on refresh" or the set values would be refreshed as well. I used a simple DT to check the current value of the boolean and then set value. Find the attached screen shots of my config and the video demo(in GIF). Hope that helps. Regards, Faizan. Posted: 2 years agoFaizanFayaz PEGA replied to FaizanFayazI tried using .pySelected in the when rule unlike my custom boolean prop as shown in SS above and that worked as well. Make sure to exit the DT, or add a jump condition after setting the values as the next when rule would pick up new values. (shown in attached ss).