In this demo, we'll look at using a sessionScope variable to create xp:radioGroup controls via an xp:repeat control, dynamically binding those xp:radioGroup controls to a data source (other sessionScope variables, in this case), and accessing the values of those xp:repeat control-nested xp:radioGroup controls.
To begin, we'll need to create our "sessionScope['repeats']" variable, which our xp:repeat control will use. Simply enter some "safe" variable names in the field below (eg,. test1, test2).
Use a carriage return/@NewLine() for multiple values, and please note there is no validation/error handling written into this demo... so don't throw in "you suck" or "length" and expect it to work; I'm not checking for would-be-invalid or reserved variable names here.
When you've entered those variable names in the field below, click on the "Update sessionScope['repeats']" button.