Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ssb-1 on
I'd like to have fixed-size textareas for comment and contact forms.
Any idea?
Comments
Why?
Why do you need fixed-size text areas? I can't imagine a reason...
It's a matter of taste.
It's a matter of taste. Resizable textareas for content input are fine, but I prefer fixed-size ones for both comment and contact forms.
Any idea how this can be accomplished in a Drupal 6 theme?
Anybody knows how to do
Anybody knows how to do this?
I'd like to know too. I'm
I'd like to know too.
I'm floating the label of the textarea left of it and the textarea is going over it. I want to set the dimensions and have them fixed.
we should have the choice
"Why do you need fixed-size text areas? I can't imagine a reason..." - jt_jones
we should have the choice don't you think?
here's one way
So ssb, Basically you have to modify the form before it is built you can do this in a module quite simply and it would be a good starter module for you if you haven't made one before. But here is a quick and dirty way:
Create a page and use it as the contact page, copy and paste the code below into the body and make sure the input filter is set to php.
And that should do it. You can use this in blocks too and you can do more with the contact form too.
Sorry, I just noticed this
Sorry, I just noticed this was a question for 6.x, which i haven't started using yet - the above code works for 5.x not sure about 6 though but hopefully it's started you in the right direction.