If I follow your instructions in THEMING.TXT, I still have no clue what to change in the file. Could you be more specific with an example. I read the forms.api and looked for a file in drupal core (contact module), but I'm not a coder and do not want to alter something I don't know it's effects. In the forum there are many guesses, but no specific answers Please, help me, make me understand this stuff.

Teach me!

Felix.

Comments

quicksketch’s picture

The things you're requesting don't require any theming or coding. It's not clear, are you actually using Webform module or are you trying to learn how to develop other Drupal modules?

Your specific requests (as far as I understand them):

- Change the width of a textfield: Create or edit a webform node, add a "textfield" component, change the "Width" option.
- Change the submit button text: Create or edit a webform node, under "Webform advanced settings", enter a new name for the submit button.

daddydo’s picture

Thank you for the quick response. Apology for not being clear enough. I am using your webform module and I did the wrong thing. Without reading further I placed the PHP code into a block at the sidebar as I wanted it there. My expertise is XHTML, CSS and design. So I was looking for the input tag to style the fields and for the submit button to set the value. Obviously I was thinking in the wrong way. But now I learned to do things the developpers way and the form is now exactly looking and doing what we expected it should look and do.

But there are more people like me. Maybe a short line in your documentation how to customise the sizes etc. should make life less stressfull.

But anyhow, great module, safe, flexible and with an excellent support!
Felix.

quicksketch’s picture

Status: Active » Fixed

Cool, I'll mark this as fixed.

MiDoe’s picture

> - Change the width of a textfield: Create or edit a webform node, add a "textfield" component, change the "Width" option.

I've already created tons of textfields and like them to be smaller.
How to change the default size (60) to a different value?

thanks for the great module

quicksketch’s picture

There is no built-in way to change the default option. You can write a short custom module that implements hook_form_alter() to change the default to something else. I think the form defaults module (http://drupal.org/project/formdefaults) allows this through GUI, but I'd really suggest using a short custom module to change this behavior rather than adding overhead of a full-fledged module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mmehler’s picture

Re: > - Change the width of a textfield: Create or edit a webform node, add a "textfield" component, change the "Width" option.

Could you please be more explicit about how to change the width of a textfield on a webform. Specifically, should I be setting the width by pixels? e.g., 200 px, 400 px, etc.? What specific information (and in what format) is the width field expecting?

Thanks for help.