Hi Tgirl.

Just wondering why you would go through that cfif
statemet. If a field is not required I would simply
use:
 
<cfinput name="SomeName" type="text"
value="#Some.Value#" required="no" message="Please
enter some value">

This way you would avoid the error message if the user
does not enter in info.

If you'd like to make the info required, simply place
a "yes" in the required field.

Let me know if I'm understanding your question
correctly.

-Ev72178

--- Torrent Girl <[EMAIL PROTECTED]> wrote:

> Hello all.
> 
> I am creating a form with a lot of fields. Some are
> required and some are not. The ones that are not 
> 
> A fellow developer was trying to explain to me a way
> to set a form fields to "" so they won't cause an
> error, but no one GIVE SYNTAX EXAMPLES!! (sorry had
> to scream)
> 
> Can you guys/gals help me?
> 
> Here is what I have (which doesn't seem to work)
> 
> 
> <cfif '#lengthOfEmploy#' EQ "">
>       <cfset '#lengthOfEmploy#' EQ "NA">
> </cfif>
> 
> Thanks
> TGirl
> 
> 
> 
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1166
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to