Hi All,

I am using cfdiv to display the Name of the employer. Once the user enters the 
id in the textfield ..Name of the employer is displayed.It works fine when I 
enter the ID but I want to validate the text field to be highlighted if the 
textfield is empty. I am using a class attribute and a "*" to indicate error in 
the field and also want the data to be autofilled if error occurs.but either of 
them work for the field.
The other fields in the page are just working file with the highlight on error.

This is what I am doing:
Number: <cfinput type="text" name="txt_Number" 
value="#session.txt_Routingdata#" class="errorfield">
<cfdiv ID="id_Number" 
bind="url:EmployerInfo.cfm?EmployerNumber={Form1:txt_Number}"/>

EmployerInfo.cfm
<cfquery name="EmployerInfo">
select Name from Employer where id='#url.EmployerNumber#' 
</cfquery>
<cfoutput>#EmployerInfo.Name#</cfoutput>


Thanks in Advance,
Pranathi


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to