Solved

Altering drupal Webform

Posted on 2014-03-10
1
480 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Drupal 5.x currently does not have a production-ready patch bundle to allow for split read & writes for a MySQL master/slave replication setup. After reading a open discussion/thread on the Drupal site (http://drupal.org/node/147160 (http://drupal.o…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now