1 of 18

Configuring �the webform module

2 of 18

Hello!

Hi, my name is Jacob Rockowitz.

  • I am known as jrockowitz on the web.
  • I am a Drupal developer and software architect.
  • I built and maintain the Webform module for Drupal 8.

3 of 18

1.

WHAT IS �configurABle?

4 of 18

The Webform module �SHIPS WITH �REASONABLE DEFAULTS� BUT EVERYTHING �IS CUSTOMIZABLE

5 of 18

Key concepts

  • Every message and label is customizable
  • Elements, handlers and exporters can be disabled
  • Render element attributes are customizable
  • All libraries are optional
  • Any questionable feature can be disabled

6 of 18

2.

WHAT SHOULD BE CONFIGURED?

7 of 18

give users �access to the �features, functionality, �& behaviors that �they require

8 of 18

THINGS THAT SHOULD always be CONFIGURED

  • Private file access for file uploads
  • SPAM protection
  • Available elements
  • API keys
  • Reuseable options

9 of 18

3.

UNDERSTANDING HOW TO CONFIGURE THE WEBFORM module

10 of 18

CONFIGURATION = WEBFORM ARCHITECTURE

  • Forms
  • Elements
  • Options

  • Submissions
  • Handlers
  • Exporters

  • Libraries
  • Advanced
  • Translations

11 of 18

  • forms
  • elements
  • options
  • submissions
  • handlers
  • exporters
  • libraries
  • advanced

12 of 18

<demo>

13 of 18

THere IS a �CONfiguration�for that!!!

14 of 18

4.

What if I can't configure something via the UI?

15 of 18

THere IS a module, hook, or template�for that!!!

16 of 18

EXERCISES: Configuration

  • Disable/enable form elements
  • Add custom reusable options
  • Switch from the Select2 to the Chosen library
  • Add custom class that can applied to buttons

17 of 18

jrockowitz.com

18 of 18

THANKS!

ANY QUESTIONS?

Ralph says...