Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Feb 2012 at 12:26 UTC
Updated:
5 Mar 2012 at 15:20 UTC
hi,
I need to increase the size(length) of all label components(textfield,textarea....). please give valuable suggestion to do this.
thanks in advance.
Comments
Comment #1
vernond commentedGoogle around for CSS help and check out drupal_add_css().
There is no support for theming etc in Webform issue queue, so I'm marking issue closed.
Comment #2
gopisundar commented@vernond ..I am sorry I didn't post my issue clearly. my problem is when I am adding field in webform I am not able to add more than 255 characters in the new component box. is there any way to increase the maximum length(size) of that so that I can add more than 255 characters for the component label for the fields I am creating. for example I am adding ' textfield' with label ' firstname'. if this label exceeds a particular value webform is not accepting. how to increase the length of that. sorry for not posting my issue clearly. please help me.
thanks in advance.
Comment #3
vernond commentedOh, sorry, I did miss your point.
Why do you need so much text in a label? The only job of a label is to give a component a name.
You have a component description textarea for components (or even use a markup component) where you can put a lot more text to say what you want to say. Lots of descriptive text does not belong in a label.
Comment #4
gopisundar commented@Vernond.
Actually i need to create label with two different languages. Example English/Some other language(firstname/other language). so in this case i am trying to enter the unicode at the place 'other language' so i dont have problem while exporting the webform. but unicode is big even for small labels.. If i go with description or mark up i am not able to store the values under correct label in database.Thats why i am asking this. please consider this and give your valuable suggestion.
thanks in advance.
Comment #5
vernond commented@gopisunder: Ouch, that's a challenge.
The limitation you are running into is that the `name` column on the `webform_component` table is 255 characters (limit is also imposed by the function webform_components_form). You could try changing the table definition and the fapi for the component edit page. It is not a trivial task and you would need to sort it out on your own as it falls outside the scope of support we offer on the Webform issue queue.
Comment #6
gopisundar commented@Vernond
Thaks for replying. I will try to do what you said.
Comment #7
gopisundar commented@Vernod
I got the solution. I changed the maximum length in webform.install file, webform.components.inc, and in database. It worked. Thanks a lot for giving idea.
Comment #8
vernond commented@gopisunder - glad you got it sorted. Be aware that you'll have to make these changes if/when you install a new version of webform.