I’m struggling to understand why I am receiving notifications that say " You should have a select field with an id of dropdown & Your #dropdown should have at least two selectable (not disabled) option elements. & Your #dropdown should be a descendant of #survey-form."
I have two different select elements with the id of “dropdown” and they are inside a form element that has the id of “survey-form”, and both have multiple options to select. When I test them on the preview, they seem to work.
These are the only things that don’t pass, so I am hopeful to resolve this very soon! haha
<fieldset>
<legend>Appointment Information</legend>
<label for=“insurance">Current Insurance Plan:
<select id=“dropdown" name=“dropdown”>
<option value="">(select one)</option>
<option value="1">Blue Cross Blue Shield</option>
<option value="2">OHP</option>
<option value="3">Kaiser Permanente</option>
<option value="4">Other</option>
</select>
</label>
<label for="insurance-card">Please upload a photo of the front and back of your insurance card: <input id="insurance-card" type="file" name="file" /></label>
<label for=“appointment-type">What services would you like to schedule?
<select id=“dropdown” name=“appointment-type”>
<option value="">(select one)</option>
<option value="1">Covid-19 Testing</option>
<option value="2">UTI Testing</option>
<option value="3">HRT Consultation</option>
<option value="4">Pregnancy Testing</option>
<option value="5">STD Testing</option>
<option value="6">Wellness Exam</option>
</select>
</label>.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
What make you error is, in this part I have two different select elements with the id of “dropdown”, try to not break the rule, i mean they ask you to make Inside the form element, you should have a select dropdown element with an id of dropdown and at least two options to choose from. If you want to pass my suggestion is just make one select, 'cause if you make two the system will read two id="dropwdown" that’ll 'cause error.
Also - I did notice when other people had this issue, the answer seemed to be that they used the same id twice, and ids must be unique, so you can’t have both the label and select using the same id. After reading, I thought for sure the issue was that both of my dropdown menus had the same id, but after fixing that, the code still doesn’t pass. I triple checked, and even used command+F to search for id=“dropdown” and that only brought back the one instance.
What else could cause this to not pass? should I just delete one of my select elements?