Survey Form - Build a Survey Form

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

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.

https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

We can’t see your code so it is going to be hard to give you good help. But I will mention that radio buttons are considered to be in the same group when they have the same value for the name attribute.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

Hi thanks, I still don’t get it, but I’ve pasted the code, I hope you can see it now?

You need to paste your actual HTML/CSS in here, not just a link to the challenge.

fieldset>

Would you recommend freeCodeCamp to a friend?


Definitely

      <input id="maybe" name="maybe" type="radio" value="2">Maybe<label for="maybe"></label> 
        
      <input id="not-sure" name="not-sure" type="radio" value="3">Not sure<label for="not-sure"></label>
    </fieldset>

One of these has the name value of “maybe” and the other has the name value of “not-sure”. Since they are different then they are not part of the same group.

I’ll repeat. Radio buttons are considered to be in the same group when they have the same value for the name attribute.

Thank you very much, i’ve passed it now, i’m on to the next now, still learning how to properly post my code on the forum so bare with me. Thanks.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.