close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UK Postcode uppercase

Thread began 10/02/2013 12:06 pm by asnw0764437428 | Last modified 10/02/2013 3:53 pm by Jason Byrnes | 1920 views | 7 replies |

asnw0764437428

UK Postcode uppercase

After creating a form in CSSFormBuilder set all the validation as required etc., except once the form is completed and tested the postcode field will only accept and validate a UK postcode if you actually type it in uppercase with the correct single space in the middle, even if the postcode is correct in lowercase. How can I get this to work regardless of whether a user types uppercase or lowercase or a space for that matter.

Sign in to reply to this post

Jason ByrnesWebAssist

The UK Post code validation requires the space to be in place, the space is needed to validate the UK format.

to allow it to validate regardless of case, you can add stringtoupper. send a copy of the page and i can tell the code that will need to be changed

Sign in to reply to this post

asnw0764437428

page attached, thanks.

Attached Files
lapstage1.php
Sign in to reply to this post

Jason ByrnesWebAssist

edit line 12 to:

php:
$WAFV_Errors .= WAValidateZC((isset($_POST["fieldset_group_Post_Code"])?strtoupper($_POST["fieldset_group_Post_Code"]):"") . "",false,false,true,false,true,2);
Sign in to reply to this post

asnw0764437428

Hi Jason
Just added that snippet of code and I still have to purposefully enter the postcode as capitals?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

asnw0764437428

pm'd

Sign in to reply to this post

Jason ByrnesWebAssist

Remove the pry validation for the zip code, Adobe does not offer a way to edit the spry to accept lower case zip codes, you will need to use server validation for the zip code.

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

Content

rating

Layout

rating

Ease of use

rating

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...