The form can only be submitted when the first option of the radio button is selected. Whenever I choose another option than the first one, the submit button is greyed out and the form canāt be submitted.
Step 1 I tick another option than the first one:
Step 2 No data is āreadā, and the empty form canāt be submitted:
I donāt see anything in the log, but that looks 100% client-side anyway.
I tried to debug the JavaScript a bit but Iām really not too sure where to look. Surely Iām missing something obvious as I guess that the radio buttons should probably work out of the box.
We havenāt used radio buttons much in the new(ish) one question per screen flow that you are using, so itās certainly possible there is a conflict with it. Iām on vacation now, but hopefully someone else will be able to take a lookāotherwise, Iāll try to take a look when I get a chanceāfeel free to ping me to remind me!
Thanks for coming back to me so quick. This is not urgent since we can use a dropdown menu instead for the time being, but it would be great if you could look into it eventually.
Otherwise, could you maybe point me out towards where to look for debugging?
I was guessing that I could debug calls to
htmlForm.submitHtmlForm()
but I am really not sure where to look. The one instance of this call that I find is in
The underlying issue has to do with the Simple Form UI whose code is here.
Basically, the UI only correctly handles a single input element per field, so there is some code that doesnāt recognize that youāve selected anything. If you had added another non-radio field/question and given it an answer, I expect that you would not be blocked from submitting, and things would work fine after submission (but the confirm screen would show a blank value for the radio question).
The reason that nobody has bothered to fix this yet is that radio buttons work badly with this question-per-screen UI, so youāre better off avoiding them in the first place. I suggest doing a select where you specify size=ā3ā (or, however many options you have) as this works pretty nicely for both keyboard and mouse usage.
Hope this helps! Feel free to edit the wiki page about Simple Form UI to mention this issue somehow.