This support forum belongs to the Form Gallery Module.
Form has a bug tracker here: https://github.com/ghinch/yui-gallery-form/issues
| Page 1 of 1 | [ 4 posts ] |
|
Please request any default validators, such as email addresses, you'd like to have available for use in the Form module.
|
|
Email Address
IP Address Postal Code Non-Special Characters Telephone How's that |
|
Can you make telephone and zip code validation based on regex patterns?
Because they are different from country to country. |
|
Where can I find a list of builtIn validators that already exist?
If isNumber isn't already provided it would be nice to have, especially if it could deal with locale differences (France use the comma as the decimal period as well as for the thousands delimiter I believe). The very simple check I have used is: function validateNumericInput (val) { if (!isNaN(parseFloat(val)) && isFinite(val) && (val > 0) && (val != '')) { return true; } else { amount_to_borrow.set('error', 'Please enter a valid number > '); return false; } } But I'm finding that maybe a field event isn't triggered if a value isn't entered, so the val != '' is redundant. How do I get Form to validate for "required" fields? TIA, Nick |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group