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

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:

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