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 |
Jump to:
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
#2
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
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
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
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
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
#8
Automatically closed -- issue fixed for 2 weeks with no activity.