Posted by Sam-Inet on January 30, 2012 at 7:06pm
3 followers
Jump to:
| Project: | Ubercart Addresses |
| Version: | 7.x-1.x-dev |
| Component: | Address book |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
Lumping all validation items together.
Postal code currently accepts "zip code"
Phone number currently accepts "some fake phone number"
US Postal code is only numeric {yes?}
Canadian Postal code is {have to look up}
US Phone number is only numeric {yes?}
Canadian Phone number is only numeric {yes?}
Probably need to add phone country code validation, if/when more countries than US/Canada are options.
Please add any other user supplied validation rules here:
Best,
Sam
Comments
#1
There is no validation because Ubercart doesn't supply validation either. Also, store owners may use address fields differently than we think. Validation rules is a good idea though, but I think it should live in an optional submodule.
I've no intentions to implement this myself, but you are welcome to come with a proposal. There may a module around that adds validation rules to any form. If that's the case, then it's probably a good idea to make use of the capabilities of that module and provide some default validation rules for it (if possible).
#2
I'll explore this:
Seems like the best way to go, so it doesn't force anyone to validate any one specific way.
Edit:
Found, http://drupal.org/project/webform_validation and http://drupal.org/project/clientside_validation . When I finish eval'ing them, I'll post the results for their use with uc addresses.
#3
Sam-Inet - did you finish evaluating these options?
#4
I haven't tested it, but maybe Rules Forms Support can do the job. If so, patches for default rules are welcome. Until then, this issue is postponed.