Question
Input Disabled
Hi Folks,
I'm having with an input field on my form. I'm getting the user to use a JS date picker to populate a date field. To stop users entering the date manually, I've added the disabled attributre so it is greyed out.
Here is the code for my form:
<input type="Text" id="date1" name="date1" value="" maxlength="15" size="15" disabled="disabled" >
However, when I add the disabled attribute, I always seem to get the error below on my action page
Can anyone help?
Error----------------------------------------------------------------------
Element date1 is undefined in a Java object of type class coldfusion.filter.FormScope referenced as:
The error occurred in C:\Inetpub\wwwroot\final\av\booking\beta\indexaction.cfm: line 19
Called from C:\Inetpub\wwwroot\final\av\_templates.cfm: line 64
Called from C:\Inetpub\wwwroot\final\av\index.cfm: line 101
17 : <!--- set variables --->
18 : <cfset equipmentNum = listfirst(form["slot"& i])>
19 : <cfset dateneeded = form["date"& i]>
20 :
21 :
I'm having with an input field on my form. I'm getting the user to use a JS date picker to populate a date field. To stop users entering the date manually, I've added the disabled attributre so it is greyed out.
Here is the code for my form:
<input type="Text" id="date1" name="date1" value="" maxlength="15" size="15" disabled="disabled" >
However, when I add the disabled attribute, I always seem to get the error below on my action page
Can anyone help?
Error----------------------------------------------------------------------
Element date1 is undefined in a Java object of type class coldfusion.filter.FormScope referenced as:
The error occurred in C:\Inetpub\wwwroot\final\av\booking\beta\indexaction.cfm: line 19
Called from C:\Inetpub\wwwroot\final\av\_templates.cfm: line 64
Called from C:\Inetpub\wwwroot\final\av\index.cfm: line 101
17 : <!--- set variables --->
18 : <cfset equipmentNum = listfirst(form["slot"& i])>
19 : <cfset dateneeded = form["date"& i]>
20 :
21 :
