Community Documentation

Common Tasks in Entityforms

Last updated May 11, 2013. Created by tedbow on February 8, 2012.
Edited by okeedoak. Log in to edit this page.

Module Integration

Many common enhancements to Entityforms can be achieved by combining it with other modules that add Field functionality.

Below are examples of ways to add functionality through the use of other Entity or Field related modules.

Form Validation

Entityforms supports basic field validation such a required field but for advanced field validation the Field Validation module can be used.

Creating Multi-page forms with Field Group

The Field Group's "Multi-page" feature will allow you to create Entityforms that span multiple pages. View this screencast Multipage feature in field_group. Although it doesn't deal directly with Entityforms the process is the same.

Reacting to Entityform submissions with Rules

The Rules module allows site administrators to define conditionally executed actions based on occurring event conditions ("Event-Condition-Action", see: ECA-rules).

Rules can be used to make custom reactions to events such as submitting Entityforms. It could be used for example to add a Role to a user depending on the value they submitted in an Entityform.

Embedding Entityforms on Nodes using Entity Reference

Entityforms can be embedded on Nodes(and other entities) using the Entity reference module. The Entityform will be embedded as a field in the node.

Example Video

Customizing forms for different user roles using Field Permissions

The Field Permissions module allows site administrators to set field-level permissions to edit, view and create fields on any entity.

The Field Permissions can be used to expose different fields to different users based on their roles.

Field Permissions can also control which Roles can view different fields in Entityform submissions. This can useful if sensitive information is submitted in a Entityform.


Prepopulating form fields from the URL


The Prepopulate module allows you to set field values via the URL. Documentation

Page status

About this page

Drupal version
Drupal 7.x
Level
Beginner, Intermediate
Audience
Programmers, Site administrators, Site builders

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.