Exercise 11.1 - Create a basic Webform
Last updated
Last updated
In this exercise you will create a simple website feedback form. Before we can create a Webform page and attach a webform entity to it, the entity must exist. Let’s create our first webform entity.
Click on Structure on the Admin menu then hover over Webforms and click on Forms.
Click on the +Add webform button at the top left of the page.
Add a Title, for example "Simple Feedback Form".
Add some text to the Administrative description field (optional).
Set the Status of the Webform to be as 'Open' using the radio buttons.
Click the Save. button.
You’ll be redirected to the webform building interface (the Build tab is active), so you can add elements (fields) to your webform, configure various conditions and much more.
Click the Add element button, find the Text field element in the Basic elements section, then click on the Add Element button to add a Text field element for the Feedback field.
Add text to the the Title field as shown in the screenshot below.
Note the other tabs that allow you to configure the field - Conditions, Advanced and Access. Explore those tabs but do not modify anything yet.
Click the Save button.
Click on the Save elements button at the bottom left of the page.
Click the View tab to review your webform. It should look similar to the below screenshot.
Try adding some more form fields for practice.
Note If you moved away from your webform at any point during the exercise, use the Admin menu to return to the form via Structure → Webforms → [select the webform from the list].