Larry,
    First, this <cfinput> is inside of a <cfform> and not just a <form> tag, 
otherwise, the 'required' attribute will not take affect.  Second, you may 
need to trim(SESSION.User.INSTITUT) the session variable before dropping 
into the 'value' attribute.

hth
Charlie Hanlon


----- Original Message ----- 
From: "Stephens, Larry V" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Wednesday, January 25, 2006 2:41 PM
Subject: <cfinput> problem


> <cfinput type="text" name="INSTITUT" size="40" 
> value="#SESSION.User.INSTITUT#" maxlength="75" required="yes" message="You 
> must enter your organization.">
>
> Why is "required" not being enforced? It has worked in other pieces of 
> code.
>
> I could understand it if the variable had data in it but in an instance 
> where we have a new registrant SESSION.User.INSTITUT is set to ""  Is the 
> very fact that I have a value= statement bypassing the required statement?
>
>
>
>
> Larry V. Stephens
> Office of Risk Management
> 812-855-9758
> [EMAIL PROTECTED]
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230440
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to