I have a form with a radio button select. When a user completes the form, the delivered email does have information on the radio button option the user selected. However if I attempt to review the form on the site in the Webform results section, the radio button 'question' is grayed out and does not have an option selected. See the attached picture for an example of what I see when viewing a previously submitted form.
| Comment | File | Size | Author |
|---|---|---|---|
| consultation-radio.png | 3.81 KB | sgdev |
Comments
Comment #1
sgdev commentedAfter further investigation, it seems as though this has to do with the "Illegal choice" error noted by many others relative to checkboxes and radio buttons. I checked watchdog, and I'm getting the following message:
I have radio buttons on other webforms, but only this one is posting a watchdog error. The one difference is this is a *required* radio button select, while the others are optional. I'm wondering if the error occurs when the form is submitted with no value selected, or if there is something specific about a required radio button select which is causing the problem.
Comment #2
quicksketchThis sounds likely. In Drupal 5, I think the Forms system checked for a valid answer before it checked for requiredness. That means that if a user doesn't select an option, they'll get this error. However it'd be strange that they could submit the form at all if this error was thrown. In either case I'd suggest that you set a default value for any radio buttons that are required, as it's good practice to do so anyway.
Comment #3
quicksketch