Community Documentation

When to use Entityforms

Last updated December 2, 2012. Created by tedbow on April 20, 2012.
Edited by okeedoak, densolis. Log in to edit this page.

When I was first researching Entityforms and other survey form modules, I had four basic questions I was trying to resolve.

  1. I don't want to create a survey form, so why would I want to use a survey form module?
  2. How does Entityform help solve my problem?
  3. When should I use it
  4. How is it different from other solutions?

After doing some research and talking with Tedbow, this modules author, I think I can start to answer these questions.


I don't want to create a survey form, so why would I want to use a survey form module?

I just had this same discussion with a friend of mine the other day. She wanted to include a signup form at the bottom of an event content type node. This sign up form would allow people to register for the event. (Yes, I know she could’ve used the signup module. However she needed more functionality than the signup module offered.) I suggested she use either Entityform or Webform. Her immediate response was "I want to create a signup form, not a survey form". And therein lies the confusion of “survey” form modules.

Survey forms modules are the name given to the class / category of modules that enable you to create a form that will capture the additional information that is NOT designed to be content on your website. What do I mean by this?

System content is information that is meant to be displayed on the home page or subsequent page and is meant to be read by most, if not all, of the site’s users. Survey information, on the other hand, is not supposed to be available to the general user community. It is meant to be read by the person submitting the information and the person(s) responsible for processing that information.

Entityform (and other survey modules) can be used to create any form where you need to gather additional "private" information. Some examples of the types of forms you can create:

  • Survey's
  • Contact forms
  • Event registration (see also Entity Registration)
  • "Was this article helpful?" questions that appear at the end of articles.
  • Application forms such as
    • Apartment
    • Club Enrollment
    • Employment
    • Scholarship
    • Volunteers

You can argue that surveys are not private information as the results are often published. Notice, I said the results are published, not the individual survey forms. The information on the individual survey forms are private.


How does Entityforms help me solve my problem?


Entityform helps to solve your problem by enabling forms to be attached to menus or content types. You can configure each form to be:

  1. Draftable – That is, the user does not have to complete the entire form in one sitting. Rather, the user can complete pieces of the form over time. When they’ve entered all the required information, they can then submit the completed form.
  2. Single or multiple responses - You can configure the form to allow the user to submit either a single response or multiple responses per form.
  3. Email the response – Using the Rules module, you can specify to whom the response should be emailed.

The responses to this form are stored as nodes with an entity type of “Entityforms”. You can access the responses using the Views module or manipulate the data using any entity aware module.


When should I use Entityforms?


This is a somewhat difficult question to answer at this point as we need to understand the differences between Entityforms and the other survey type solutions. So please let me address this question at the end of this article.


How does Entityform differ from other solutions?

All though Entityforms is powerful tool, it is not always the best solution. There are many ways to create survey type forms. Unfortunately, I do not have time to compare Entityforms to all of the different methods. Therefore, I will compare Entityform to Content Type and the Webform module. Webform is one of the other big player in the survey arena.

While these "survey" forms enable you to capture important information from your site's visitors, this information would normally not be your "site content". For example, let's assume you are developing a web site for a company that owns apartment complexes. The site content, which is view-able by all visitors, would contain articles about the different complexes and their amenities, locations, and nearby attractions. The main goal of the site would be to entice the viewer to submit an application to rent an apartment. However, this application would never become "site content". That is, the application information would not be published on the web site for all visitors to view.

That, in a nutshell, is the difference between survey / application information and site content! Site content is meant to be viewed by most, if not all, of your site visitors. Surveys or application type forms are not meant to be viewed by the general public. Rather, they are normally viewed by the person who completes the form and the person(s) who processes the form.

This basic difference is critical to the your understanding of when to use survey modules such as Entityforms and Webforms and when to use Content Types such as articles or basic page.

Below is list of advantages and disadvantages that Entityforms have over other methods of creating user submit-able forms.

Entityform and Content Types Pro & Cons

Entityform has two major advantages over adding a new content type.

  1. Entityforms allows users to have the ability to create new forms without requiring them to have permission to create any and all Content Types.
  2. Entityforms also allows the creation of a large number of forms without "cluttering" the Permission form. This is because the role permissions for each form are specified in the Access Settings vertical tab of the Edit Entityform form. Creating many different Content Types may create administrative complications on a site.

  3. Nodes are usually used for user generated and user viewable site content. Entityforms modules does not produce nodes. Therefore, some advantages of Content type are:

  4. More modules that integrate with node permission regarding who can view nodes
  5. More modules that help with how and where you can view nodes.

If I fill out a survey or apartment application, I would not expect to have everyone see that information. However, if I post a blog, then I would expect everyone to see it.

Entityform and Webform Pros & Cons

  1. Since Entityform is an entity,
  2. Uses Drupal Fields - can make use of countless contributed modules
  3. Rules Integration - provides very flexible notifications system
  4. Rules can determine all values of submission via Fields tokens

Webform Advantages

  1. Adding Webform components may be easier that creating Fields
  2. Because of how Webform stores submissions it works better for Forms that have a large number of fields(50+?)


When should I use Entityforms?


Now that we understand all of the differences, my recommendation would be to use this module when you need to create a survey or application type form that integrates with other existing field or entity aware modules such as date, email, links, views, display suite, panels, rules, calendar, features, .

Comments

Should I use Entityforms?

I have classifieds site. I want to create "contact-classifieds-author form" displayed under every classified node type. There should be name, email and text fields. I need email notification to form submitter, node author and site admin.

Is this possible to do with entityform?

I ♥ Drupal.

I know I am being a little problem. But is it okay if I use it over 100 fields ?

Or is it going to be future ???

Thanks a lot.

Regards,
Amjad
Web Developer,
Emerging Stars.

Regards,
Amjad Pathan, Web Developer/Designer,
EmergingStars.com

15 Regent Road,Sea Point,South Africa,8000
T: +27 079 726 3456
F: +61 3 9534 1100
E: amjad@webprophets.net.au
P: amjad1233@gmail.com

Page status

About this page

Drupal version
Drupal 7.x
Level
Beginner
Audience
Programmers, Site administrators, Site builders
Keywords
content types, entityforms, webforms

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here