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 huwaz on
How can I modify the site-wide contact form? Add some additional fields , such as an address and phone number
Comments
use Webform modules
use Webform modules
Webform module adds a webform nodetype to your Drupal site. Typical uses for webform are to
create questionnaires, contact or request/register forms, surveys, polls or a front end to issues tracking systems.
http://drupal.org/project/webform
Does Webform allow modification of standard Contact form?
Or you have to design and implement another separate form, and configure categories, email delivery, etc.?
Thanks
You can use hook_form_alter()
You can use hook_form_alter() for this. You just add the fields you want to the $form array.
this blog post explains the trick
Be illuminated by reading this blog post. It also includes example code.
http://www.isegura.es/blog/modifying-contact-form-drupal-how-add-field
Dead Link
Link is dead
_
Even better resource: http://drupaldojo.com/lesson/fine-tuning-the-ui-by-theming-forms-in-drup...
_
WorldFallz' link is dead