I have been doing searches all morning trying to figure how to simply change the size of the input fields for the default (core) contact form. The best thing I could find was some vague references to 'hook_form_alter'. I am not sure if this is the right track or not. All references I found did not specifically show how to change the field size.

Could anyone please provide me with a link which shows this step by step or explain it to me here?

Thank you.

Comments

werther’s picture

I think this site holds the answer to my question: http://11heavens.com/theming-the-contact-form-in-Drupal-6. But it does not show how to change the size of the fields.

would it be something like:

$form['cid']['#size'] = 20;

ffletch’s picture

Close. If, for example you wanted to change the size of the subject field, it would look like this:

$vars['form']['subject']['#size'] = 26;