Connecting Tech Pros Worldwide Forums | Help | Site Map

displaying asterisk with required="true"

Newbie
 
Join Date: Jul 2008
Posts: 4
#1: Dec 10 '08
Hi all.
As you know Coldfusion dynamically generates js code for cfinput tags.
And there is required="yes" feature.

I want to automatically add red asterisk at the end of input field when cfinput contains required="yes".

Possible?

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Dec 11 '08

re: displaying asterisk with required="true"


I'm not sure if this is possible in Coldfusion code, but you could use the generated client-side code to see what is added and decide what to add from there.
Newbie
 
Join Date: Nov 2008
Posts: 5
#3: Dec 11 '08

re: displaying asterisk with required="true"


Yes, I agree with acoder. I don't think there is a simple built in way to do it. You might consider using the xml or flash format instead. Those formats already add an an asterisk for mandatory fields.
Reply

Tags
cfinput, javascript, required