Multi-page Forms in Drupal 6

Sun, Apr 4, 2010 - 11:14am -- Isaac Sukin

I recently did some work for a client that involved multi-page forms. Specifically, the client wanted a page where users could choose one of five forms, each of which had about ten steps with one question each. Users had to be able to move forward and backwards through the forms, with their data saved when they finished.

I knew a lot about working with forms in Drupal, although I'd never actually worked that extensively with multi-paged forms. But I did my research, and luckily there are some nice tutorials out there. However, most of these were specifically for forms with only two pages, or covered older versions of Drupal, or were crazy complicated. There is a great tutorial at pingVision which I unfortunately found after the fact, but this also doesn't cover a "back" button.

So, here's an example of what I came up with. It's a little clumsy, and there's probably room for simplification, but it works. You can move back and forward in the form and all of your data stays inputted without getting mysteriously wiped away.

Very quick php snippet testing in Drupal

Mon, Feb 22, 2010 - 6:42pm -- Isaac Sukin

I use this trick all the time, practically every day in fact when I'm building a website. When you need to test a PHP snippet or you want to find out how something responds -- you want to see the structure that taxonomy_get_tree() returns, for example, or you forgot what the structure of the data returned from a multi-select form element is -- you can use this shortcut instead of going through the whole tedious process of writing a module or running the risk of blowing up your site by saving the PHP in a node.

How Internet has Changed Consumer Interaction

Mon, Nov 9, 2009 - 5:18pm -- Isaac Sukin

Rupert Murdoch has announced that News Corp will start completely blocking Google from its websites. Or something like that -- it's kind of hard to understand what he means, probably because he doesn't understand what he means. This is a man that doesn't get the internet, and he wants to impose an old-school financial model on it. My favorite tech blog, Mashable, had this insightful comment:

The Status of Statuses

Wed, Oct 21, 2009 - 10:16pm -- Isaac Sukin

As the maintainer of the Facebook-style Statuses module for the Drupal content management system, I like to read around the web and see what kinds of statistics and innovations I can find on comparable systems. This week, there was a gold mine that indicates that the "status movement" is going to grow its already expansive online presence exponentially.

Pages

Subscribe to Isaac Sukin RSS