Skip to main content
James Davidson
Show Navigation
Hide Navigation
  • Home
  • About
  • Blog
  • Contact

Form API

Drupal Form #states inverting for 'checked' => TRUE

28th July 2012

I was recently working on a site where I wanted to use the '#states' key in a form using the Drupal 7 Form API. If you haven't come across this yet its a great way to only show a field depending on a certain set of circumstances.
  • Read more about Drupal Form #states inverting for 'checked' => TRUE
  • 2 comments
  • Add new comment

How to create a multi-step form in Drupal 7

7th May 2012

How to create a simple multi-step form in Drupal 7, with forward and backwards navigation, per-step validation, and how to retain values between steps.
  • Read more about How to create a multi-step form in Drupal 7
  • 22 comments
  • Add new comment
  • Find James Davidson on Drupal.org
  • Follow James Davidson on twitter
  • Follow James Davidson on Google+
  • Find James Davidson on GitHub
  • Find James Davidson on LinkedIn
  • Home
  • About
  • Blog
  • Contact

Copyright © James Davidson 2022

Website design by Katherine Cory