Survey form help please

Survey form help please
0
#1

My survey form has passed 15 out of the 17 tests required and I don’t get what’s wrong with the ones that didn’t. they’re both about the name and email input fields having the correct id’s. I’ve double checked it a hundred times, looked at other people’s code but it looks the exact same. Really need some feedback on it!! Here’s my project on codepen: https://codepen.io/alexandreopf/pen/bjwYvY

Thanks in advance.

0 Likes

#2

Always make sure you read the whole error:

AssertionError: Name input field should be required : expected false to be truthy

You need to make both fields required.

0 Likes

#3

You code is almost there.

The problem you are having is not obvious at first- the tests require that for the inputs email and name, the user must enter a value. To do this the inputs must have the required attribute set:

<input type="whatever" id="whatever" required />

Hope this helps :slight_smile:

0 Likes

#4

Thank you so much!! I’ll make sure to read the whole thing next time lol.

0 Likes

#5

Thanks!!! I was only looking at the id and it didn’t even cross my mind that the problem would be that. Appreciate it!

0 Likes