Build a Customer Complaint Form - Build a Customer Complaint Form

Tell us what’s happening:

I’m failing 5 tests, and they all seem related. 18/20 are about the complaint checkboxes and description, and 26/28 are the same issues relative to the solution radio button and description. In both cases, if I check/select Other and enter less than 20 characters, the borders turn red and I can’t submit. The tests are saying that validateForm() for the relevant elements should be false, but the fact that the borders are turning red suggests they are. Test 31 says isValid should return false ..

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15 Ddg/26.2

Challenge Information:

Build a Customer Complaint Form - Build a Customer Complaint Form

test 31 says isValid should return false and I think it is, since I can’t submit and the borders are red where they should be.

I don’t even know where to look in dev tools to try to figure out what’s going wrong – can I get some guidance on how to go about debugging these?

Use console.log() liberally to find out exactly what input the automated tests are sending.

This will help you understand exactly what is causing the test to fail.

Search the forum and see who was failing the same test and what they did

https://forum.freecodecamp.org/search?q=Build%20a%20Customer%20Complaint%20Form%20order%3Alatest

Hey there,

Please update the message to include your code. The code was too long to be automatically inserted by the help button.

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').