'#behaviors' => array(...)

This session will be a discussion about bringing interactivity, dependencies and behaviors directly into Form API. Instead of coding small JavaScript snippets for each and every desired form behavior we should introduce a centralized API for dynamic form interaction.

Basically, we have three different things we want to do with forms:

  • Dependencies: Conditionally show/hide parts of forms
  • Validation: Sanity check the user input on the client side for smoother and faster interaction
  • Behaviors: Trigger an action when the user does (selects, types, checks, …) something

Note: This session will be primarily a discussion, not only a presentation of something that is already in place.

Time: 
15-16
Average: 4.3 (19 votes)