Skip to main content
Known Participant
April 6, 2019
Answered

Element must be the ID of a non-hidden form control

  • April 6, 2019
  • 1 reply
  • 6657 views

Could someone please assist with the cause of these erro and provide a solution. Thanks in advance.

This topic has been closed for replies.
Correct answer Nancy OShea

The error message says it all.  You need a  label with a matching input ID.  The errors show you have names but no IDs.

<label for="UserName">What is your User Name?</label>

<input name="UserName" id="UserName" type="text">

1 reply

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
April 6, 2019

The error message says it all.  You need a  label with a matching input ID.  The errors show you have names but no IDs.

<label for="UserName">What is your User Name?</label>

<input name="UserName" id="UserName" type="text">

Nancy O'Shea— Product User & Community Expert