How can I set a Custom State based on a which Radio Button is selected in a Repeating Group?


I have a multi-page form to create a Database Object. On one page, I have a Repeating Group with its Cells set for Radio Buttons which displays all the Options from an Option Set. When the User selects an Option, I want to set a Custom State holding which Option was selected. The Custom State is used to control the visibility of other Elements on that page and also to save to a field in the Database Object when the User navigates to the Previous or Next page.

Any thoughts on how I can accomplish this? The template I’m using has this architecture working for the Repeating Group but it is using a larger UI element that I would like to replace with Radio Buttons.

Here is layout →

Any help would be greatly appreciated. Thanks!

Hi there, @royjay… if I understand your post correctly, what you described should be as simple as using the An input’s value is changed workflow event to set the custom state (which I assume has a state type of the option set) to the current cell’s option when a radio button is selected. Have you already tried that?


1 Like

Hi @mikeloc, as always, thank you for your quick reply. That WF was easy to setup (obviously), but for some reason, when I debug it, the Parent’s Group’s Value is set the Option in the first cell, no matter which cell is selected. I’ve tried setting the Custom State to both the Current Cell’s Option and the Parent’s Group item.

Screenshots for Current Cell’s Option

Screenshots for Parent’s Group

Any thoughts on what I might be doing incorrectly? Thanks!

if I understand your post correctly, you want to make both in one state you can use append in your state like that : first data append: second date .

Hmm, now that I think about it, why are you using a repeating group for the radio buttons (if that’s what you are doing)? You should be able to have the radio button element display the options from the option set, and when a radio button is selected, set the custom state to the radio button’s value. Am I totally misunderstanding what you are doing?

Ok, that worked. Thanks!

Please let me know when you want to talk. I need some fairly big changes to this template and I’m interested in working with you on it.

1 Like