I Used Drupal Core and the Form API to Build a Mind Reading Machine
summary
Builds a survey app on Drupal 8 Core and Form API that serves random idea pairs from node fields, records votes and intensity, and saves results to a custom table keyed by UUID. Uses hidden fields and JS workaround to avoid Form API rebuilds (captures clicked pair IDs, submits via jQuery), adds a honeypot spam trap, and manages caching and validation. Outputs priorities and comparative factors to a dashboard rendered with the Google Charts API, demonstrated with live demo data.
AI-written summary · about
chapters (10)
- 0:00Introduction and setup
- 1:07Why Drupal for applications
- 2:10Case study and problem solving
- 5:01Live demo introduction
- 10:47Building the start page
- 22:56Creating the voting form
- 33:24Handling form submission
- 35:52Displaying results with charts
- 41:59Analyzing the data
- 43:22Conclusion and next steps
related talks
32mHow I Corrupted Survey Results and (Maybe) Ruined a Business
17mA case study: Ditching the paper for Drupal
58mCiviCRM secrets for Drupalers
02h 21mExtending eZ Platform (Part 2)
19mHow I learn good programming by learning Drupal
33mThe Form API Workflow
26mSay No to Boilerplate: Building Apps with v0
02h 29mExtending eZ Platform (Part 1)
