Is there a way to show a list of radio buttons one by one, so RadioButton2 only shows if RadioButton1 is not blank WITHOUT having to put a visibility script on each radio button to achieve that?
I have a complex form with lots of eligibility questions and I want to try control their visibility with a datafield that returns a Pass or Fail. This works fine if I just show all fields and then make them hide if they make a selection that results in a Fail (using data.x != 'Fail'). But I want the user to only see the next question when they've answered the previous one right.
PS: the radio buttons will have some visibility rule already that decides whether they show based on what checkbox they've ticked at the start. So for some scenarios, some radio buttons will never show.
You could use a Data Driven Radio Group to do that, and use your decision logic code to add/remove items from the array that backs the buttons.
For example, to add a new radio button to the group, just do something like:
... and to remove, do something like: