macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: validating & masking using cfinput

Subject: Re: validating & masking using cfinput
From: "Kapitaine"
Date: Thu, 21 Feb 2008 13:15:29 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

Can you not simply leave it as it is, then check when the form is posted what 
it equals? If it equals (000) 000-0000) you could simply make it blank.

 E.g

 <cfset variables.cellnumber = trim(form.cellnumber) />
 <cfif variables.cellnumber eq "(000) 000-0000)">
 <cfset variables.cellnumber = "" />
 </cfif>
 <cfoutput>#variables.cellnumber#</cfoutput>

 Not sure if that would work because I'm just using my head but it's worth a 
shot.

 Hope I'm actually seeing the point properly here.

 Thanks,
 Mickey. 


<Prev in Thread] Current Thread [Next in Thread>