Closed (fixed)
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2012 at 08:12 UTC
Updated:
30 Nov 2012 at 14:20 UTC
I notice client side validation only happens on my text fields and not on the link fields (URL).
I am using the link module http://drupal.org/project/link and I absolutely need this because it checks for external urls, etc but I can't get clientside to check on keyup.
I even tried adding my own regex field validation (using field_validation module) to this field - no luck either.
I notice it doesn't work when I have this as my field type also.
http://drupal.org/project/email
http://drupal.org/project/phone
Any ideas why?
Comments
Comment #1
attiks commentedThere's no integration for these 3 fields, we do support http://drupal.org/project/elements. Elements will probably solve the problem for email and phone, but for URL it's one field only, it doesn't add an extra field for title.
Marking this as a feature request so we can add support in the future.
Comment #3
jumoke commentedThanks attiks. Kudos for all the great work on this amazing module!
I inspected element and notice the browser renders link fields as type="text" - so shouldn't this work without any extras? What does the title have to do with?
Comment #4
jumoke commentedAlso is there plan for this to support Field_Validation 2.x? Currently it supports 1.x http://drupal.org/project/field_validation
Thank you.
Comment #5
attiks commentedSee #1535756: Support Field Validation 2.x
The field are rendered as a text input, but for drupal they are different, they have names like email, phonefield and linkfield so they have to be treated differently.
Comment #6
jumoke commentedCan anyone please suggest an option for acheiving clientside validation for my url/link fields for now please?
Comment #7
attiks commentedComment #8
jelle_sfixed in the latest dev version. For phone fields you will need the patch in #1554396: Follow Drupal Standards in phone_field_widget_form()
Comment #9
jumoke commentedAwesome!! Thank you :)
Comment #10
attiks commentedComment #11
jelle_sPatch was commited to latest dev of the phone module.
Comment #12
jelle_s