• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

DateField Populated then disabled

New Here ,
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

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?
TOPICS
Advanced techniques

Views

860

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

What is the plan for getting it populated? User input? Action Script function? Value attribute?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

the value should come from a query

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 09, 2007 Nov 09, 2007

Copy link to clipboard

Copied

Ghis wrote:
> the value should come from a query

just display it as text instead of in an input field?
if you need the value in your form scope, duplicate it into a hidden
field? (do cf flash forms support hidden fields?)

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 10, 2007 Nov 10, 2007

Copy link to clipboard

Copied

That is not what I want. It looks like I need to make sure that the DateField must be popuplated before it is disabled. How to do so.
If the datefield is enabled from the page load...it is working
If the datefield is disabled from the page load than NO CHANCE to get the field populated. There should be a way!! HOW?

Try the sample code that I have attached in my previous posting...you will understand.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 11, 2007 Nov 11, 2007

Copy link to clipboard

Copied


since you are using flash forms, i guess you will have to write some
ActionScript to disable your date field after it is populated with
data... not sure if you can do it with js for flash forms...
i remember asfusion.com having a lot of useful info on cf flash forms
ans AS...

--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 10, 2007 Nov 10, 2007

Copy link to clipboard

Copied

What do you intend to use this disabled form field for?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 10, 2007 Nov 10, 2007

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2007 Nov 19, 2007

Copy link to clipboard

Copied

LATEST
Why not make your date field "Readonly"?

<cfinput type="datefield" name="wfcDate" label="Date" readonly
required="yes" validate="date,noblanks" width="100" value="#wfcDate#"/>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation