Build a Survey Form-Help Needed

Build a Survey Form-Help Needed
0.0 0

#1

Tell us what’s happening:
I’m trying to create a survey form as a part of challenges
why does the test template suite always shows the error at naming id’s of name and email although i’ve created them . please do correct me if i’m wrong!

Here’s my codepen
My Survey Form

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-survey-form


#2

When using codepen you need to put this: <script src="https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script> but only the https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js into codepen->settings->javascript


#3

I have done it . please do check where i was wrong.


#4

I’m having the same issue, checked my code a million times. I’ll get back here if I find an answer


#5

@sorinr please look into this:neutral_face:


#6

Hi @gus.vancouver and @saiyerniakhil

When you run the test, you should see a red button that says how many of the user stories you have correct.

If you click that button, it will show you what they are looking for as a passing user story. In my case, I just had my id in the wrong statement.


#7

I did the tests. n.4 and 5 won’t pass. I have the id’s in the proper elements, but they won’t pass for some reason. What do you mean the id was in the wrong statement? maybe I have the same error in my code.

Thanks


#8

Hello Gus,

You do have the proper elements but they do not have the require attribute.


#9

Thanks! Yes, I was missing an attribute, that was it.


#10

@gus.vancouver which one did you miss?


#11

Required. I didn’t add that to the input tag. User stories 4 and 5 say the inputs for name and email are required.


#12


like these…?


#13

yes. You’re also missing "required"inside the tag. That tells the form if the user didn’t write anything in the field.


#14

Oh My God! It Worked thank you @gus.vancouver :hearts:


#15

Someone else answered me on another post. But glad I could help. I was losing my mind over this :slight_smile:


#16

yes I too waited a long time for the mistakes i have done


#17

Thanks everyone for helping!


#18

Glad it worked out for both of you :blush: