Skip to main content
Inspiring
April 28, 2006
Question

form validation

  • April 28, 2006
  • 2 replies
  • 292 views
Hi all,

I would like to add some nice looking form validation to my site, I am using DMx2004 and CF7, now I can see in the training from the course book I have that it can be done, if using a processing page - however, I am processing the data and inserting it on the page where the form is, does anybody know how I can add server side validation on the page please?? many thanks
This topic has been closed for replies.

2 replies

May 7, 2006
Try changing your <form> tags to <cffom> then when you come to your form element such as input box try this <cfinput type="text" name="elementname" maxlength="10" required="yes" message="you must enter this field" validateat="onServer">

I use this for forms in ColdFusion running on two separate pages, but give it a shot it just might work for you and save you the cost of a commercial product.

the key is changing your forms to <CFFORM> and the <CFINPUT> don't forget the ValidateAt = "onServer"

Good Luck
Inspiring
April 28, 2006
Hi Simon,

If you are prepared to consider a commercial solution then you might
want to take a look at our WA Validation Toolkit. We include a number of
Server Behaviors that will add server-side validation on the page. WA
Validation Toolkit supports ColdFusion 5.x or later.

You can check this out by pointing your web browser at the URL listed below:

http://www.webassist.com/Products/Samples/33sample.asp?PID=33

We also offer a number of free recipes to accompany this solution. You
can learn more about this from this web address.

http://www.webassist.com/Products/ProductCategory.asp?CID=9

Feel free to contact me off-list if you want to discuss this or any
other WebAssist.com products.

Best,
Mark

----------------------------------
Mark Fletcher
WebAssist.com
----------------------------------


Simonbullen wrote:
> Hi all,
>
> I would like to add some nice looking form validation to my site, I am using
> DMx2004 and CF7, now I can see in the training from the course book I have that
> it can be done, if using a processing page - however, I am processing the data
> and inserting it on the page where the form is, does anybody know how I can add
> server side validation on the page please?? many thanks
>