Voting starts in March for the Drupal Association Board election.
The Entityform module allows the creation of front-end forms that are fieldable entities. The forms use the Field API.
Entityforms can be used when you need your form submissions to be entities and the fields on the forms to be standard Drupal Fields.
Adding Fields to Entityforms is done with same process as fields to Node content types. For more information on adding fields see the Field UI documentation.
Once you activate the module it sets up an Entityform administration interface under
Administration > Structure > Entityform Types
Enable the module
You will notice that this page has four tabs across the top of the page. (By default, the List tab will be active). The four tabs are:
While you can define rules in this module via the Access, Submission, and Validation tabs, all of those rules that are implemented and managed by the Rules module. Nodeone has an excellent and free videos series entitled Learn the Rules Framework, which may help you learn the basic of the Rules module.
This tab will automatically list any existing Entityform types. In addition, you can also perform the following task from this page:
- Add a new Entityform type.
- Edit an existing Entityform.
- Manage the fields on an existing Entityform.
- Manage the display of an existing Entityform.
- Clone an existing Entityform.
- Delete an existing Entityform.
- Export an existing Entityform.
- Import an Entityform type from a previously exported Entityform.
- List the existing submissions for an Entityform type.
- Submits an existing Entityform type for processing.
Ok, let's add a new Entityform type (or you can edit an existing Entityform type). To do this, we will need to be in the List tab.
- Click "Add an Entityform Type" to add a new Entityform or click on "edit" to edit an existing form. The Add (or edit) entityform form will appear. You will notice there are at least four tabs across the top (there may be more depending upon which other modules you have enabled):
A new window will appear. Please enter the requested information. Should you need additional information, you can read the user documentation. It provides instructions for each field on the "Add an Entityform Type" form.
CRITICAL NOTE: The permission for the different Entityforms are not contained on the Admin >> People >> Permissions page! Rather, the permissions for each Entityform are contained in the vertical tab labeled Access Settings. You must make sure that you have at least checked one role that can submit the form.
Click "Save Entityform Type" Once the Entityform Type has been saved, you will be presented with the Manage Fields form.
The standard Drupal 7 Manage Fields form will be presented to you. You will use this form to add fields to the Entityform you created in the above steps. You will add fields to this Entityform just like you do when you are adding fields to any other entity type, such as article, basic page, user, comment, or taxonomy term. (This is due to the fact that an Entityform is an entity - just like Content (node), User, Comment, or Taxonomy Terms.)
Once you have added your fields, you might want to click on the Manage Display tab so you can specify how your fields will be displayed. Before leaving the Manage Fields screen, make sure you save all of the changes that you entered for all of your fields. To exit the current form, you can click on the X, which is inside of a circle. This X is located at the top right corner of the current form.
To view your form, you will need to return to the list of Entityform Types. You can do this by going to Administration >> Structure >> Entityform Types. To see the Entityform you just created, click on the "Submit Link" button that is on the same line as the desired Entityform.
This tab allows you to create access rules that control under what conditions a user can “see” the form. Please note the basic entity form page with the instructions will be displayed no matter what, however actual Entityform itself will be hidden if the access rule conditions are not met.
Please note that this page only allows us to define access rules. It does not allow us to assign these rules to a specific Entityform. We will use the Access setting vertical tab on the individual Entityform to assign a specific access setting rule to the specific form.
You can add your own access rules as needed.
The Submission rules enable us to specify under what conditions the Entityform can be submitted to the system and what to do once it has been submitted.
For example, default Email Entityform submitter rule specifies that an anonymous user can not submit the Entityform. If an authenticated user submits an Entityform then the system will send an Email with the contents of the Entityforms to the appropriate Email address. The default Email address in the one specified in the e-mail address field on the Home » Administration » Configuration » System page.
Please note that this page only allows us to define Submission rules. It does not allow us to assign these rules to a specific Entityform. We will use the Submission setting vertical tab on the individual Entityform to select the appropriate submission rule for the specific form.
You can add your own submission rules as needed.
The validation rules enable us to specify under what conditions the Entityform will be considered valid. If an Entityform does not pass validation an error message will be displayed to the user and the form will not be accepted.
No default validation rules are supplied. Therefore, you will need to add your own validation rules.
Please note that this page only allows us to define validation rules. It does not allow assigning these rules to a specific entity form. We will use the Validation settings vertical tab on the individual entity form to select the appropriate validation rules for the specific form.