Solved

Altering drupal Webform

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

Suggested Solutions

Title # Comments Views Activity
How to alert users that they have a survey / webform to complete 2 27
Wordpress - Redirects failing since upgrade to 4.4 7 104
Customizing themes 14 97
Old act to CRM 2 127
This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

820 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