Article Side

Online Article Directory!

Hello Guest! Login or Register to submit articles!

How to hide those empty fields on Drupal webform

By Valuebound Subscribe to RSS | August 13th 2012 | Views:
loading
 
  



Drupal webforms are great a way to create custom form in very short time. It let you post the results via email and it is also helps to conduct a poll or to receive feedbacks from your users. When you submit the webform, it displays all the submitted values on the next screen by default; it provides a view of the submitted values. Webform displays all the values along with the labels. If a field has a value of 0 (zero), then those fields only have labels on submission screen. These empty fields can be hidden by adding a condition in the files that are located at webform/components/ directory.

So, let’s have a look at how to do this with a number of fields in Drupal 7

First go to directory webform/components/ and then open number.inc.

Find _webform_display_number function

Now, rewrite the code as follows:

Doing this will hide the numeric fields if they do not have a value on submission page.

You can add this condition for other field types as well. You are required to look for function pattern _webform_display in all the files in components directory

Hope you find it useful for your use case. For any further clarification or any kind of assistance related to your website, please contact Valuebound!

Valuebound is a leading Drupal Development Company providing Enterprise Drupal web solutions. For more information on Drupal Development, contact us at info@valuebound.com

Valuebound - About Author:
Visit The Source Article: http://www.valuebound.com/blog/how-hide-those-empty-fields-drupal-webform

Share on Facebook Tweet It Stumbleupon this post This post is delicious !

Article Source:
http://www.articleside.com/web-design-articles/how-to-hide-those-empty-fields-on-drupal-webform.htm

Related Web Design Articles Subscribe to RSS

Identify your needs before hiring software Development Company
Published by Sam Aaron on December 8th 2011 | Web Design
When you select a software development company, you have to tell them that you have a certain amount...
 
Broadway Infotech ensures best ecommerce solutions
Published by Devendra on January 24th 2012 | Web Design
You can easily take advantage of high standards of website development, website design and ecommerce...
 
 
Web portal software development advancement in India
Published by OsmicTechnologies on December 29th 2011 | Web Design
Best Web Portal Development company India looks for providing effectual and prize-saving services to...
 
Best Web based project management software
Published by Brooke Mueller on May 17th 2012 | Web Design
What is a project? In terms of project management, a project is always a temporary organization of r...
 
Open source solutions for E commerce websites – Opening up to new avenues
Published by Henrypeter on December 9th 2011 | Web Design
Open source solutions for ecommerce are in vogue because they are pre-designed solutions, which are ...
 
How to find out perfect e-commerce solutions
Published by Devendra on February 2nd 2012 | Web Design
E-Commerce solutions should be such that it enhances your customers’ confidence in your website wh...
 
Captivating Advantages of Wordpress Development: No. 1 blogging software
Published by Mark Wilston on March 5th 2012 | Web Design
Blogging is one of the most preferred ways of web development. People use blog services for commerci...
 
Web based project management software and project management solutions
Published by Brooke Mueller on July 2nd 2012 | Web Design
Web based project management software is not just for managing software based project. it can be use...
 
Developing custom web solutions in modern competitive scenario
Published by Sitikantha Pattnaik on June 12th 2012 | Web Design
Nowadays IT outsourcing is the best way to deal with the invested budget, even in case of web develo...
 
Quality solutions from Website Design and Development India Companies
Published by Alisa Rozzy on March 13th 2012 | Web Design
Today’s web design companies know their jobs really well, making the website attractive, appropria...
 
Travel booking software’s - Plays vital role in online travel booking
Published by EaseMyTrip on April 21st 2012 | Internet Business
Online reservation has made our lives easier. It saves both time as well as energy, and we can do bo...
 
Broadway Infotech ensures best ecommerce solutions
Published by Devendra on January 24th 2012 | Web Design
You can easily take advantage of high standards of website development, website design and ecommerce...
 
Life is good with web based project management software
Published by Brooke Mueller on April 25th 2012 | Web Design
An array of software's are amalgamated in a web based project management software like scheduling, b...
 
Software project management plan and project software
Published by Brooke Mueller on July 2nd 2012 | Web Design
Software project management plan is the art and science of planning and leading software projects. I...
 
Web Application Development- the biggest advantages web application solutions
Published by Devendra on February 23rd 2012 | Web Design
The world of Internet, which has evolved from a network-based hypermedia distributed information sys...
 
Creative quality Web Design solutions is easy to get now
Published by Nelson on April 25th 2012 | Web Design
ByFriday..Graphic designer, web designer, website designer, graphic designing, web designing, websit...