Survey Form - Build a Survey Form

Tell us what’s happening:

Hi! I’m nearly there - but can’t understand why the code isn’t passing this test:

Every radio button group should have at least 2 radio buttons.

The survey shows two radio button questions and they both have at least two selectable buttons.

Thanks in advance

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Hello, May you show us your code?
This is how you can add code in your messages.

1 Like

Hi - thanks for looking. Pls see below.

<id="yes-parent-label" type="radio" name="yes-parent" class="inline" value="yes-parent" />Yes</label> <label for="no-parent-label"><input id="no-parent-label" type="radio" name="no-parent" class="inline" value="no-parent" />No</label>

<p>Does your child or children attend any of the below:</p>
          <label for="institution-nursery-label"><input id="institution-nursery" type="radio" name="institution-nursery-label" class="inline" value="nursery" />Nursery</label>
          <label for="institution-childminder-label"><input id="childminder-label" type="radio" name="childminder-label" class="inline" value="childminder" />Childminder</label>

          <label for="institution-school-label"><input id="school-label" type="radio" name="School-label" class="inline" value="school" />School</label>
type or paste code here

type or paste code here

<p>Are you a parent or guardian?</p>
        <label for="yes-parent-label"><input  id="yes-parent-label" type="radio" name="yes-parent" class="inline" value="yes-parent" />Yes</label>
        <label for="no-parent-label"><input id="no-parent-label" type="radio" name="no-parent" class="inline" value="no-parent" />No</label>type or paste code here

if the question should be answered with one choice (one radio button), then the two radio buttons should have the same name attribute in order to force the user to select only one of the two.
(does that make sense?)

So the Are you a parent …? question, cannot be answered by selecting both yes and no, so set the name attribute to be a single value for both inputs.

1 Like