Survey Form - Build a Survey Form

The error I am receiving for this code is that each group of radio buttons must have at least two items. I set the name in all three of my radio buttons to be the same, but that does not seem to work. Any suggestions would help!

** code so far**

<!-- file: index.html -->
<!DOCTYPE html>
<html lang='en'>

  <link rel="stylesheet" href="styles.css">
  <title>Survey Form</title>
  <meta charset='UTC8'>

  <h1 id='title'>freeCodeCamp Survey Form</h1>
  <p id='description'>Thank  you for taking the time to help us improve the platform</p> <!-- italizise -->
  <form method='post' id='survey-form'>
      <label id='name-label'>Name<input type='text' id='name' name='name' placeholder='Enter your name' required/></label>
      <label id='email-label'>Email<input type='email' id='email' name='email' placeholder='Enter your email' required/></label>
      <label id='number-label'>Age (optional)<input type='number' id='number' name='age' placeholder='Age' min='13' max='120'/></label><!-- dont not accept non-numbers-->

      <label>Which option best described your current role?
        <select id='dropdown'> 
          <option>Select current role</option>
          <option>Full Time Job</option>
          <option>Full Time Learner</option>
          <option>Prefer not to say</option>
        </label> <!-- dropdown -->

      <label>Would you recommend freeCodeCamp to a friend?</label>
      <label>Definitely<input type='radio' name='yes' value='1' name='group1'/></label>
      <label>Maybe<input type='radio' name='maybe' value='2' name='group1'/></label>
      <label>Not Sure<input type='radio' name='notSure' value='3' name='group1'/></label>
      <label>What is your favorite feature of freeCodeCamp?</label><!-- dropdown -->
      <label>What would you like to see improved?</label><!-- checkbox -->
      <label>Wiki<input type='checkbox' id='wiki' value='1'/></label>
      <label>Forum<input type='checkbox' id='forum' value='2'/></label>
      <label>Videos<input type='checkbox' id='videos' value='3'/></label>

      <label>Any comments or suggestions?
        <textarea placeholder='Enter your comments here...'></textarea></label>

    <input id='submit' type='submit' value='Submit'>

/* file: styles.css */

Your browser information:

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

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

I couldnt grab the entire screen, but look at your radio group here. You have two name attributes or each radio button there should only be one

That seemed to be the issue, thanks for the help!

1 Like

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