Help with passing tests for survey form project

Help with passing tests for survey form project
0

#1

I am having trouble understanding why my pen will not pass the last three tests. If someone could give me some pointers I would really appreciate the help.
FCC: survey form


#2

Thank you for being a Beta tester. Here is the link to report a bug.


#3

When I click to see the test results I see this:

AssertionError: There should be at least 2 checkboxes inside the form : expected 0 to be at least 2

That leads me to look at your checkboxes, but I see this just above them:

<form>
  <input type='radio' name='recommendation' value='Yes!'> Yes! <br>
  <input type='radio' name='recommendation' value='Maybe'> Maybe <br>
  <input type='radio' name='recommendation' value='No!'> No! <br>
</form>

So it looks like you’ve nested forms and as a result, the checkboxes are “outside” the form.

Finally, all the checkboxes should have a “name” attribute and it should be the same for each one.

If you correct those two things, you pass all 17 tests.


#4

Went back as you suggested and got rid of the nested form, the survey now passes every test. Thank you for taking the time to help me with my problem.


#5

Glad I could help. Please mark my answer as the solution.