Andy,

It is possible to remove this complexity from the users by using a cfif
along with the trim function.

<cfif #Trim(Form.FormName)# is NOT "">
code ...
</cfif>

This This would strip all of the spaces out from the beginning and end of
the form field string.  

If this is not what you are looking for, let me know.  I hope this helps.


David Henry
HPER Technology Services
School of Health, Physical Education and Recreation
Indiana University 
(812)855-4270
[EMAIL PROTECTED]


-----Original Message-----
From: Andrew C. Davis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 25, 2000 8:14 AM
To: Cold Fusion List
Subject: Form Field Validation - No Spaces


I have a form that has fields that, when validated, allow the user to
enter "spaces".  I want to be able to check for fields that contain only
spaces and then inform the user that they must enter text.  How do I do
this?

Andrew C. Davis ([EMAIL PROTECTED])
TAMMIS Website Administrator / Systems Administrator
Metrica, Inc. * San Antonio, TX
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to