SOLVED - Testing failes #5 - Survey form project

Hi All,

I am using this link for unit testing the survey form project:
https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js

It fails #5 for the id=“email” test. I do however have placed this in the input line:

<input type="email" id="email" name="email" class="form-control" placeholder="Email" oninput="this.className = ''">

What am i doing wrong here?

Thanks for helping.

Link to survey form project:
https://romson.github.io/Art-Gallery-survey-form/

1 Like

the error gives additional information which gives you a clue as to what is wrong.
AssertionError: Email input field should be required : expected false to be truthy

So the problem is that your email field is not required at the moment (if you click Submit, you should see a message telling the user to enter a value for that field).

to make an input field required you need to add “required” to the input tag in the html file

1 Like

Thank you very much hbar1st,

I see why i had it removed now. I had another issue that i asked help for in the JS section:

I totally forgot to add it back.

Thanks again. :blush: buys you a drink