Published on Yale University Library (https://web.library.yale.edu)

Home > Printer-friendly > Webform

Webform

Setup

  • Setup permission (one time setup): People > Permission > Node > enable "General Editor" to "Webform: Edit own content"
  • Currently, general editor won't be able to create webform in Product environment. Get title from request, create a webform with that title. The default path will be "form/title-in-lower-case"
  • Select proper "Sub-section" if require
  • Change author to the person who is going to edit the form.
  • The owner can start to work with the form now.

Try webform

  • For Practice: Log in to dev.library.yale.edu
  • Conatent > Add Content > Webform
  • Give the "Title" and write the description for this form in "Body", that will show up on the top of form. Save the form.
  • Additional tags show after the form been created
    • Edit
    • Webform
      • Form components
      • Conditionals
      • E-mails
      • Form Settings

References

  • YaleSites: Create a New Webform [1]

Custom Email Subject

"Text [submission:values:field_set_key:field_key:nolabel] More text"
** nolabel is an optional, indicate "Do not show Label"
=> Purchase Request - [submission:values:item_information:item_title:nolabel]

References:

  • Drupal: How to customize the subject field with form component values [2]
  • Bohemian Blog: Drupal Webform Module: How To Customize the Subject Line
  • Drupal Upgrading from Webform 3.x to 4.x [3]

Webform Tips

There are several futures that can help to get the information. The best place to get token source is click "Browse available Tokens". Here are some examples.

Q: By default, Yale user can log into Drupal with their netid, Drupal will create an account with some basic from Yale Directory, so if a user log into a form, we can get user's information as default value with the following token:

  • [current-user:name] for Current login user's name
  • [current-user:mail] for E-mail

Source URL:https://web.library.yale.edu/lit/sr/webform

Links
[1] http://yalesites.yale.edu/module-tutorials/webform [2] https://www.drupal.org/node/823408 [3] https://www.drupal.org/node/1609324