Drupal Forms User Guide
Setting up a new form in Drupal
To create a new form, navigate to the forms listing page (Structure -> Webforms -> Forms).
In the top right, click the +Add webform button.
This will show a popup form with the New form settings in.
Set the title of the form, then fill in the Administrative details with the following information:
- a brief description of the purpose of the form
- the main stakeholder (and their email address)
- any form routing email information
- if the form is being migrated from Forms Master, the old Forms Master ID
Publishing forms
Webforms are a little different to regular web pages in that they can't be published or saved as draft. Instead, you can set the form to be open or closed. If you set it to closed, when people try to access the form on the live site, they will get a message saying the form is not accessible at this time.
When building and testing forms, it's quite safe to leave them open as the form directory on the live site is blocked from search engines. This also means you can share the live site URL, for example https://www.southwark.gov.uk/form/test-form, with a stakeholder, and they will see the form just as the end user will see it.
Click Save to complete creating the form. You will then be taken to the form builder page.
The form title
If the form is going to be standalone (as opposed to being embedded in a page), the first thing to do is to add the form title.
Use the +Add element button, search for HTML and select a Basic HTML element.
In the HTML Markup editor that appears on the right hand side of the screen, add the title of the form and set it to H2 style, then save it.
This will now sit at the top of every page.
Now you can start adding pages and populating them with elements. There are a wide variety of elements, and sometimes more than one elements for a single purpose. The following 3 pages describe the most commonly used and useful elements.