Edit a Webform

From ITwiki

Jump to: navigation, search

Webform is the module for making forms. After a submission, users may be sent an e-mail "receipt" as well as sending a notification to administrators. Results can be exported into Excel or other spreadsheet applications.

For steps to create a new Webform, please visit Create a Webform.

Please make sure to log into the specific site of the section which needs a new Webform.

The login procedure is the same as the one described in the section titled Access.

“Section” refers to the section in the Stevens Webpage. Some sections include sit, cal, sse, howe, news etc.


Edit a Webform

Step 1 - Choose the Webform to Edit

To edit a previously created Webform, please follow the steps below:

  1. Click "Content" link on the top black bar.
  2. Select the "Webform" tab.
  3. Choose the Webform to be edited and then click "Edit" from the Operations column.

The image below would help you better understand this step.

Step 2 - Enter Webform Information

The Edit Webform page is displayed. Some of the fields to be entered are described in the figure below. The Fields marked with an asterisk are compulsory.

Title: The title of the page (the URL/link to this content will based on the title)

Body: The Body constitutes the main content that needs to be displayed in the page. Major content of the page is placed in this section. For more information, please see the Body heading under Create a Page section.

Step 3 - Select Admin Unit

For the Admin Unit select list, choose the unit that will access the form (for results, webform settings, etc.). You can select multiple admin units by: on Mac - Press and hold the Command key/on Windows the Ctrl key For e.g., for a Registrar page, the admin unit “-Registrar” under SIT could be chosen. The dashes before the section names represent the hierarchy with the parent section/admin unit. -- (double) denotes a child of the Admin Unit with a - (single) dash. This helps in better content management, access control and associating content to their respective units.

Step 4 - Create a Page Revision (optional)

Under the “Revision information” tab at the bottom left of the page, create a revision of the page for version controlling. This helps to undo the changes made and also the see the page content before the changes were made.

Step 5 - Enter Page URL (optional)

Under the “URL path settings” tab at the bottom left of the page, is an option to change the URL. By default, the URL is automatically generated by which site you are in and what is entered in the title field (see above). If one is in the /sit site and creates a page titled Stevens Advantage and leaves this field blank, the URL generated by the system will be www.stevens.edu/sit/stevens-advantage

If we want this page to be in the Undergraduate Admissions site (stevens.edu/sit/admissions), which is a subsite of /sit, we need to edit “URL path settings” and enter admissions/stevens-advantage and the URL generated will be www.stevens.edu/sit/admissions/stevens-advantage.

Step 6 - Choose Moderation State

Under the “Publishing options” tab at the bottom left of the page, select the checkbox next to “Published” to publish the page.

Step 7 - Click Save

Click “Save” to create the Webform page. At this instance, only an empty Webform would be created. The fields/elements/components of the Webform have to be manually added. After clicking “Save”, the “Webform” tab is displayed as shown in the image.

Step 8 - Add Components to Webform

For adding a Component to the Webform, please see the following steps:

1. Enter the component name. This is the name which is displayed in the main Webform page.

2. Select the component type from the list. Choosing the component close to what is really needed helps automatically apply the validations and also maintains the data integrity. For example, choosing a type Date will not allow the user to enter characters and Drupal will take care of all the validations by itself.

Some of the frequently used types are described below:

  • Date: For date types.
  • E-mail: This type is used when an E-mail type is required. This will take care of the validation checks for an e-mail ( like the @ symbol, .com or .edu at the end)
  • Fieldset: This is used to group components into one section. A Fieldset can also have a name.
  • Number: The number field makes sure no characters are entered. Also options for specifying maximum/minimum limit and round-off limit could be specified here.
  • Select options: This is useful when a user wants to include a drop-down select list similar to the one as the “Component Type” list.
  • Textarea: This is used when the user needs to type multi-line text.
  • Textfield': This is helpful when the user needs to type single line text.

3. Check the box under “Mandatory” if the field required is mandatory.
4. Click “Add” to add the field.

The Edit component is displayed to customize the component if required. The image describes and highlights some options which could be customized for the component added.

The image below shows the placing of the Above Label, Inline Label and No Label.

5. Finally click “Save component” to save the changes applied.

Steps to create Select options component

To create a Select options list, please follow the steps below:

  1. In the Forms component page under Webform tab, add the component name and select the component type as "Select options" and click "Add".
  2. In the Edit component page, under the "Options" section, enter the options to be populated for the list. The format for entering an option is component machine name, then the display name separated by the vertical(|) bar symbol, i.e. machine_name|display name.
  3. Click “Save component” to save the changes applied.

E.g.: The image show a select list of department majors.

Step 9 - Set-up Automated E-mail responses (optional)

E-mail automated responses can be set-up by following the steps below:

1. Choose the E-mails button (under the Webform tab) and you have two options: Address: Specify an email address (entered manually) for notification/internal purposes, i.e. An email to be received by person overseeing a registration form. Component value: Select from the User E-mail drop-down menu the email label (from the form). The use case of this is to set up an automated confirmation response for a person completing this form.
2. Click “Add” to add an e-mail.

The Edit e-mail settings page is displayed to customize the e-mail settings if required. The image describes and highlights some options which could be customized for the e-mail added.

3. Finally click “Save e-mail settings” to save the changes applied.

Step 10 - Set-up Form submission Confirmation message

After the user submits the form, a confirmation message can be set-up to be displayed.

This is done by selecting the “Form settings” below the “Webform” tab at the top of the page.

1. Enter the Confirmation message in the Textarea under the “Confirmation Message”.

2. Redirection location: This option decides the page to be displayed after the user submits the form.

  • “Confirmation page” displays the “Confirmation Message” in its own page without changing the link.
  • “Custom URL” will redirect the user to a new page link after user submits the form with the “Confirmation Message” displayed.
  • “No Redirect” reloads the page with a fresh form without displaying a “Confirmation Message”.

3. Total submissions limit: This option helps to set the total submission limit for the form. 4. Per user submission limit: This option is useful to allow number of times a single user can submit the form. This is a useful option to prevent spamming of the form. 5. Status of this form: This is helpful to allow/disallow the form to be submitted.

  • “Open” keeps the form open for submission.
  • “Close” closes the form for submission. Please not that the Close option does not delete the webform. It only makes it inactive.

The image describes and highlights some options which could be customized for the form.

Step 11 - Click Save

Finally click “Save configuration” to save the changes.

Step 12 - View Webform

To see the Webform, choose the “View” tab at the top right of the page. A sample Webform is shown below.

Sample Webform

The image below shows a sample webform.

Personal tools