Some months ago, I discussed multiple values in CCK using AJAX. A few people showed interest, so here's Part 1 of how AJAX can go together with Drupal.
We'll start with a common use case: checking that a username is available when a new user signs up. After you're done with this tutorial, you should be able to give the new user near-instant feedback on whether or not their username is available. I like to start at my desired result and work backwards, so that's what we'll do.
by domenic on Thu, 11/08/2007 - 05:33So, if you want more than one value for a field, it's a problem.
Say you want a user to be able to enter an arbitrary number of email addresses/IM names/phone numbers/whatever on his profile. The "Allow multiple values" option in CCK is woefully adequate.
Aaron tackled this problem with aplomb (well, as far as Drupal allows) by creating a new CCK type for each field that we need to allow multiple fields on. We create a block view for it, then simply embed that view in the profile edit form.
by aaron on Wed, 05/23/2007 - 11:08After finding myself writing the same form handling code over and over and over (and over) again, I finally decided to do something about it.
And then FormCorral was born.
