My automatic, wizard generated form 'Registration', has a postcode window that will only allow 2 digits, Australia needs 4. I have gone into the data table and changed from integer to varch and made it 15, But on the last 4 attempts at creating thi

6/03/2013 2:09 amCraigRBeta Tester

Did you try commenting out or removing the validation for the postcode to get the form to work properly ?

Do this first. If this doesn't help, then it isn't (only) a validation issue

As i mentioned in my last post, the function can't cope with this (AUS/NZ validation) at present, and you cannot do it via the server behaviour interface. you need to code by hand.

Back up your existing pages, so in the event you make some mistakes, you can always go back to where you were.

Assuming validation is the problem...

To start with, create a standard postcode validation using the Webassist validation for Zip Code by adding this server behavior via the interface.Test it thoroughly using various US and UK postcodes/zipcodes

The validation functions are on a page called wavt_scripts_php.php which is stored in the webassist/form_validations folder.

Add WAValidateZCNewto the bottom of the wavt_scripts_php.php page and save the page.(I posted the code for this in another thread)

I then found the line on my page which was validating the code and made 2 changes to it1 I renamed the function to WAValidateZCNew2 I added the extra parameter 'true' to the line.

so as an example... $WAFV_Errors .= WAValidateZC(((isset($_POST["postcode"]))?$_POST["postcode"]:"") . "",true,true,true,true,true,13);