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

vernond’s picture

Status: Active » Closed (fixed)

Google 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.

gopisundar’s picture

Status: Closed (fixed) » Active

@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.

vernond’s picture

Oh, 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.

gopisundar’s picture

@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.

vernond’s picture

@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.

gopisundar’s picture

@Vernond
Thaks for replying. I will try to do what you said.

gopisundar’s picture

@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.

vernond’s picture

Priority: Major » Normal
Status: Active » Fixed

@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.

Status: Fixed » Closed (fixed)

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