I need to change submitting form for users (textarea to textfield)

yamenshahin - October 13, 2009 - 12:11
Project:Web Links
Version:6.x-2.3
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

When users submit new link, by deult be allowed to choosing multigroup for link
I need to:
Not allow the user to choose multiple group.
Change textarea to textfield for url box
Which file i need to change, or which file contain the submission form.
Thanks for help

#1

yamenshahin - October 13, 2009 - 12:13
Assigned to:yamenshahin» Anonymous

#2

NancyDru - October 13, 2009 - 12:24
Status:active» postponed (maintainer needs more info)

The node form is in weblinks.module at function weblinks.form(), as is standard for Drupal.

I'd like to have a clearer understanding of the problem. The reason that field is a textarea is because a URL can be thousands of bytes long, and a textfield will not accept more than 255 bytes.

#3

yamenshahin - October 13, 2009 - 18:06

Thanks for you quick response!
Now i know why you choose textarea instead of stranded textfield.
But the problem for me that textarea allow users to hit enter then he can enter another link, this would show an error . I want to spare the normal user the trouble of error.
for example i did a test. I wrote a link (google's link) then i hit enter and wrote another link (Yahoo this time). Now the link is (http://www.google.com/__http://www.yahoo.com).

#4

NancyDru - October 13, 2009 - 18:52

That was a trade off we had to make as maintainers. See #136813: URL field too short and #284463: URL length needs to be increased. I believe you could have the same problem with a "textfield."

#5

yamenshahin - October 13, 2009 - 19:37
Status:postponed (maintainer needs more info)» closed

Again thanks for your quick response.
I will use textarea.
But I hope that you -kindly- make something - in the future- prevents the user from putting more than one link to avoid errors .
Thanks for your great and helpful modules.

#6

NancyDru - October 13, 2009 - 23:08

One validates form data to ensure that incorrect data (error) is not entered. How about we at least put some "help" text below the field to say something like "Enter a single web address (URL), including the 'http://'"

#7

NancyDru - October 13, 2009 - 23:08
Status:closed» fixed

#8

System Message - October 27, 2009 - 23:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.