• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 408
  • Last Modified:

Flash Form, Disabled Field, Color Change

When you mark a <cfinput> within a flash form to disabled=Yes" it displays the data in the field on the page as a light gray.  Is there ANY WAY to alter the color so that it is easier for the end user to read on the page?  This is killing me...
0
Lee R Liddick Jr
Asked:
Lee R Liddick Jr
  • 3
  • 2
1 Solution
 
trifecta2kCommented:
I'm not sure that you can change the color of the text.  I tried with css but it never worked.  I have changed the background color of the input field and made the text more visible.  To do that you can do:

<cfform name="myform" height="400" width="280" format="Flash" onload="formOnLoad()">
       <cfformitem type="script">
        function formOnLoad() {
              applyStyles();
         }
        function applyStyles() {
         _global.styles.TextInput.setStyle("backgroundColor",0xFFCC66);
        }
then your form...

0
 
trifecta2kCommented:
Another option is to add this to CSS:

className input[disabled] { background-color: white; color:red; }

The only problem is that I've noticed that it doesn't work well with IE but it works well with FireFox.
0
 
Lee R Liddick JrReporting AnalystAuthor Commented:
Not the background color...I want to change the font color.  BTW, that was a really disgusting shade of orange you used for the background too.  Hahahaha.
0
 
trifecta2kCommented:
I only used the orange to make sure you would see it...lol.  Let me think of another solution
0
 
Lee R Liddick JrReporting AnalystAuthor Commented:
My apologies...I didn't even read the beginning of your comment.  I will play around with some background colors, not so obtrusive.  If you do think of anything else, please let me know.  Thanks.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now