Solved

Altering drupal Webform

Posted on 2014-03-10
1
484 Views
Last Modified: 2014-03-12
Hi experts,

I am using webform module to build a contact form on my drupal site. One of the fields I added to the form was Address field which is webform built in component.  If you see the attached screenshot, the Address fields comes with the following fields: Country, Address 1, Address 2, City, State and Zip code.

I would like to be able to remove Address 2 using a custom module and hook_alter_form function, the problem is that I have no idea how.


Could you please help me on this?

Thanks,

Winter
Address Component from Webform
0
Comment
Question by:glepiza
1 Comment
 
LVL 16

Accepted Solution

by:
HagayMandel earned 300 total points
ID: 39919677
You can use hook_form_alter() as described in this article.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question