# Survey Form - Build a Survey Form

**URL:** <https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540>\
**Category:** Curriculum Help\
**Tags:** css, html\
**Created:** [November 20, 2022, 3:37am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540 "2022-11-20T03:37:57Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 3:37am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/1 "2022-11-20T03:37:57Z")

</div>

**Tell us what’s happening:**  
Every radio button group should have at least 2 radio buttons. this is what I need help with my code has everything else checked.  
I also have extra code but not sure how to clean it up and also I don’t know how to add a background image is not working

**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.

````plaintext
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36`

**Challenge:** Survey Form - Build a Survey Form

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 3:51am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/2 "2022-11-20T03:51:04Z")

</div>

```
 Would you recommend freeCodeCamp to a friend?

```

Definitely  
 Maybe Not sure  
What is your favorite feature of freeCodeCamp?  
Select an option Challenges Projects Community Open Source What would you like to see improved? (Check all that apply) Front-end Projects

---

<div class="post-metadata">

**Author:** ![kai1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kai1/32/304174_2.png) [@kai1](https://forum.freecodecamp.org/u/kai1)\
**Post date:** [November 20, 2022, 3:51am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/3 "2022-11-20T03:51:49Z")

</div>

This is how you can paste your code in your messages.

 ![Pre-formatted-text](https://global.discourse-cdn.com/freecodecamp/original/3X/1/b/1b18854f1059217f29370444396145cc3a0cd8ae.gif)

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 3:52am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/4 "2022-11-20T03:52:21Z")

</div>

```auto
     Would you recommend freeCodeCamp to a friend?

<label for="definitely"><input id="definitely" type="radio" name="definitely-maybe-notsure" class="inline" value="1"
checked/> Definitely</label>
        <label for="maybe"><input id="maybe" type="radio" name="definitely-maybe-notsure" class="inline" value="2"/> Maybe</label><label for="not sure"><input id="not sure" type="radio" name="definitely-maybe-notsure" class="inline"
value="3" /> Not sure</label>
 <label for="feature">What is your favorite feature of freeCodeCamp?
          <select id="feature" name="feature">
            <option value="">Select an option</option>
            <option value="1">Challenges</option>
            <option value="2">Projects</option>
            <option value="3">Community</option>
            <option value="4">Open Source</option>
<label><label for="delete" name="delete">
<input>
        </label>
        </label>
What would you like to see improved? (Check all that apply)
<label for="front-end projects" name="front-end projects">
          <input id="front-end projects" type="checkbox" name="front-end projects" class="inline" value="1"/> Front-end Projects
        </label>
        <label for="back-end projects" name="back-end projects">

```

---

<div class="post-metadata">

**Author:** ![kai1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kai1/32/304174_2.png) [@kai1](https://forum.freecodecamp.org/u/kai1)\
**Post date:** [November 20, 2022, 3:55am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/5 "2022-11-20T03:55:11Z")

</div>

This code passes the test `Every radio button group should have at least 2 radio buttons.` In my browser. Maybe try running your code in some other browser or incognito mode.

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 3:56am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/6 "2022-11-20T03:56:31Z")

</div>

I figured it out and passed but I need help learning to clean the code a bit and it wasn’t perfect. I did it in about 1 hour and a half to 2 hours the project

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 3:57am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/7 "2022-11-20T03:57:45Z")

</div>

how can I screenshot or send you the full code to see the website I built?

---

<div class="post-metadata">

**Author:** ![kai1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kai1/32/304174_2.png) [@kai1](https://forum.freecodecamp.org/u/kai1)\
**Post date:** [November 20, 2022, 3:58am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/8 "2022-11-20T03:58:32Z")

</div>

@Alessandro1 You can paste your whole code in this way.

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 4:00am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/9 "2022-11-20T04:00:41Z")

</div>

my warning was for the code being too long. so I need to find another way.`

 Registration Form 
# freeCodeCamp Survey Form

Thank you for taking the time to help us improve the platform

 Name Email Age (optional) Which option best describes your current role? Select current role Student Full Time Job Full Time Learner Prefer not to say Other Would you recommend freeCodeCamp to a friend?

Definitely  
 Maybe Not sure  
What is your favorite feature of freeCodeCamp?  
Select an option Challenges Projects Community Open Source What would you like to see improved? (Check all that apply) Front-end Projects Back-end Projects Data Visualization Challenges Open Source Community Gitter help rooms Videos City Meetups Wiki Forum Additional Courses \<fieldset\> \<label \</select\> \</label\> \<label for="comment"\>Any comments or suggestions? \<textarea id="comment" name="comment" rows="8" cols="60" placeholder="Enter your comment here..."\>\</textarea\> \</label\> \</fieldset\> \<button id="submit"\>\<input type="submit" value="Submit" /\>\</button\> \</form\> /\*CSS HERE ON\*/ body { width: 100%; height: 100vh; margin: 0; background-color: #1b1b32; color: #f5f6f7; font-family: Tahoma; font-size: 16px; } h1, p { margin: 1em auto; text-align: center; } form { width: 60vw; max-width: 500px; min-width: 300px; margin: 0 auto; padding-bottom: 2em; } fieldset { border: none; padding: 2rem 0; border-bottom: 3px solid #3b3b4f; } fieldset:last-of-type { border-bottom: none; } label { display: block; margin: 0.5rem 0; } input, textarea, select { margin: 10px 0 0 0; width: 100%; min-height: 2em; } input, textarea { background-color: #0a0a23; border: 1px solid #0a0a23; color: #ffffff; } .inline { width: unset; margin: 0 0.5em 0 0; vertical-align: middle; } input[type=“submit”] { display: block; width: 60%; margin: 1em auto; height: 2em; font-size: 1.1rem; background-color: #3b3b4f; border-color: white; min-width: 300px; } `

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 4:02am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/10 "2022-11-20T04:02:59Z")

</div>

is there another way? please I want to get better and improve my coding skills I am new.

---

<div class="post-metadata">

**Author:** ![kai1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kai1/32/304174_2.png) [@kai1](https://forum.freecodecamp.org/u/kai1)\
**Post date:** [November 20, 2022, 4:11am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/11 "2022-11-20T04:11:01Z")

</div>

You can use this website for sharing code [https://codeshare.io/](https://codeshare.io/)

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 20, 2022, 11:29pm UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/12 "2022-11-20T23:29:40Z")

</div>

[https://codeshare.io/eVrd6J](https://codeshare.io/eVrd6J)

---

<div class="post-metadata">

**Author:** ![Alessandro1](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@Alessandro1](https://forum.freecodecamp.org/u/Alessandro1)\
**Post date:** [November 21, 2022, 2:39am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/13 "2022-11-21T02:39:10Z")

</div>

I will wait for your feedback tomorrow

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [May 22, 2023, 2:40pm UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/572540/14 "2023-05-22T14:40:03Z")

</div>

Closed on May 22, 2023, 2:40pm UTC

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