rss
twitter
    @docwisdom huh?

More colors for CFFORM.

If this has been posted anywhere, I have been unable to find it.  I have been doing quite a bit of work with <cfform format="flash" ...> recently.  I have always liked the clean look of 'Flash Forms', and try to use them whenever its feasible.

Last week, while working on a small project for my wife.  Like I have before, I tried to find the 'skin' that best matched the colors of the site.  None of the pre-canned skins fit well enough with the colors of the site for me to be satisfied.  I discoverd one way in which you can get a 'skin-like' look for any color you choose by using the style attribute of the <cfform> tag.

view plain print about
1<cfform name="testForm" format="flash" style="themeColor:##990000" ...>

Specifying themeColor as one of the styles does a pretty good job of giving me a pallette in my Flash form that fits well into the color scheme of the site in question.  It does not allow you to have as much fine control over certains aspects like a full fledged skin would, but I think this will suffice for most of my projects where I use Flash forms.

6 comments

(Comment Moderation is enabled. Your comment will not appear until approved.)
todd said...
If I remember correctly, the only thing that doesn't really play nicely with 'themeColor' is the datagrid. But you can always override the grid's styles to match your themeColor.

P.S. Am I the only one too dumb to get captchas right on the first try?
Scott Stroz said...
Todd - I have used this with forms that have a datagrid, and so far, it has done a better job of getting the colors right then if I had tried it myself.

And,I also get captcach wrong all the time.
todd said...
Really? I'll have to take another look then....

Messed up captcha again................... :)
Raymond Camden said...
You should use Charlie Arehart's BlogCFC/Lyla mods. It makes the captcha a lot easier.
jim collins said...
Also if you remove L, 1, 0 and o from your possible captcha set it makes it much less error-prone
todd said...
See, I knew I wasn't crazy.

http://cfsilence.com/blog/client/index.cfm/2006/9/...

Your method works best Scott.