matthew.newby-crl
-
7/9/2013 8:48:08 AM
RE:Adding watermark to a field
We've been putting a "*" in the TextBox fields to indicate that a value is required, and in our QA testing practically all the testers are noting that the email field is required but not visibly flagged as such. Any progress on adding watermark capabilities to email fields in the Kentico BizForms?
Assuming that this feature is NOT part of the 7.x releases, your suggestion to use a RegEx to validate emails in a TextBox seems to be the only alternative. I'm sure you're aware that building a regular expression to properly validate emails is a non-trivial undertaking. One thread on StackOverflow has 45 different answers to the question of "What's the best regular expression you have or have seen for validating emails?" (http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address) Couple that with the imminent arrival of some 2000 new top-level domains, and the validity of these answers gets called into question. Bottom line, simple RegEx's will either pass invalid emails or fail valid ones (or both), and even highly complex RegEx's struggle to meet IETF specifications (RFC 822, RFC 5322, etc.) for current TLDs, let alone the freight-train of new ones inbound.
Is there any way to access the built-in Kentico email validation code/function while using the TextBox field type? Alternatively, can you tell us what the internal email validation RegEx is?
|