We have to touch each field so the default value will have the mask applied to it. If you view source you'll see the setFocus() code after the form. If you add your setFocus() after the setFocus() that we run your will be last and it will end on the field you want.
---nimer -----Original Message----- From: David Brown [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 11:42 PM To: CF-Talk Subject: CFMX cfform format html I am trying to use validate and mask with cfinput. But each time I do the focus is set to the field. If I remove the mask option then the focus is set to the body onload"" event field. Why would adding mask to the cfinput set focus? <CFINPUT type="text" NAME="PhoneHome" SIZE="12" maxlength="12" MESSAGE="Please enter a phone number at which you can be reached. xxx-xxx-xxxx" mask="999-999-9999" validateat="onSubmit" validate="telephone" required="yes"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:4:199721 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

