Survey Form Project - Assistance Needed

I am stuck trying to get the last requirement met for the Survey Form.

“13. Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute.”

I’ve looked at other people’s code trying to resolve it myself but I haven’t figured it out yet.

Please take a look and if you can give me insight into what I’m missing.

I’m not certain but I think it might be to do with this: “AssertionError: All your radio-buttons must have a value attribute”

If you click on the 13, that’s the first part of the error message.

To me, it looks like it is expecting you to provide a value to each button so that when the form is “submitted”, you are then able to see which button has been selected i.e. value = “satisfied”

If the code is submitted at the moment, with no value, you would not know which one of the buttons with the name “radio1”, “radio2” etc. had been selected.

Hope this helps

1 Like

Thanks I will try that. Edit That was it. Thanks so much @hepsy

Happy to help.

The requirement is badly worded in my opinion as it doesn’t mention the need for values, just names.

1 Like