Solved

Altering drupal Webform

Posted on 2014-03-10
1
507 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

691 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