close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Adding to Server Validation Behaviour and displaying error messages

Thread began 6/07/2017 3:41 pm by Dave Buchholz | Last modified 6/09/2017 1:30 pm by Ray Borduin | 141 views | 1 replies |

Dave BuchholzBeta Tester

Adding to Server Validation Behaviour and displaying error messages


I have a situation where I need to add an extra validation rule to the checkout process to prevent customers entering a PO Box number as a shipping address. I have found a regex here: and I have entered this using the wizard and added a show/hide behaviour to the checkout page and it appears to work BUT the error message does not appear either on blur or after form submit. How does this work ?

Also if you have any feedback on the regex that would be gratefully received.

Site details and ftp in private message.


Dave Buchholz
I-CRE8 Limited

Sign in to reply to this post

Ray BorduinWebAssist

A few issues.

1) The checkout form needs to work with client validation and not server validation. The server validation is a catch-all, but the messages are managed with the jquery validation since the lower section of the page loads with AJAX and the top form itself isn't reloaded, so server validations wouldn't show unless the page reloads.

2) Your pattern matched if the field had PO BOX in it... You wanted the inverse of that to match if it DIDN'T have PO BOX

3) The Javascript JQuery validation pattern only works with full string matches.

I was able to solve your issue, but I had to update the jquery.h5validate.js file to allow for more complex pattern matching. Please download a copy of that file. I'll have it updated in the next update, but it may get overwritten in the meantime, so save a backup.

I also added the pattern attribute to the <input> tag and adjusted the pattern so it has the inverse effect (fails if the pattern includes PO BOX).

I also updated the pattern to the same effect in the server validation.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...