Solved

Altering drupal Webform

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

9 Experts available now in Live!

Get 1:1 Help Now