Closed (won't fix)
Project:
Link
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2010 at 06:40 UTC
Updated:
14 Nov 2019 at 10:12 UTC
Jump to comment: Most recent
Comments
Comment #1
petiar commentedSubscribing...
Comment #2
jnjn commentedNeed this aswell asap
Comment #3
wooody commentedHi , if you unchecked the validator then u can insert http:// as a default value.
but if u make it required it will passed, coz there is already value.
Comment #4
tdimg commentedSimply unchecking validation to be able to set http:// as its a default value doesn't do the trick, for two reasons:
1. if it's a required field, the default value is enough to pass through the check and you end up with a link to http://
2. if it's not a required field, and the user doesn't change the field value, then you also end up with a link to http://
But, at least in Drupal 7, you don't have to type http:// to pass validation, www.example.com is good enough. However, there's a usability issue in my opinion in having http:// displayed in the form as a default value or better yet as a placeholder value of the form field.
Comment #5
JCB commentedHi Guys,
I did a really bad hack to get this working.
http:// is added if there is no protocol specified; alternatively the entered protocol is used.
Modify link.inc as shown below:
Comment #6
JCB commentednot sure if this helps anybody; however here is the code I now updated on my module in link.inc
Comment #7
damienmckennaThank you all for your efforts, but I'm sorry to say that the D6 version is no longer supported.