Skip to main content
Participant
November 9, 2007
Question

DateField Populated then disabled

  • November 9, 2007
  • 3 replies
  • 970 views
I have a form in flash format. On the page load, I need to disabled a datefield input but at the same to get it populated. The problem is that the datefield input is always empty.
When I delete the "disabled" property..it is working.
How to make both working?
This topic has been closed for replies.

3 replies

Inspiring
November 19, 2007
Why not make your date field "Readonly"?

<cfinput type="datefield" name="wfcDate" label="Date" readonly
required="yes" validate="date,noblanks" width="100" value="#wfcDate#"/>
Inspiring
November 10, 2007
What do you intend to use this disabled form field for?
GhisAuthor
Participant
November 11, 2007
If the radio button is selected, then this will enable the datefield to be modified otherwise the value, coming from the database, is shown and the datefield is disabled.
Inspiring
November 9, 2007
What is the plan for getting it populated? User input? Action Script function? Value attribute?
GhisAuthor
Participant
November 9, 2007
the value should come from a query