Submitted by Visitor (not verified) on Sat, 2010-07-24 16:11.
Hello-
I'm looking for help using AHAH to add new fields, much like when you have a node fields with an unlimited number of values. There is a button that says 'Add Another Item'. How can I implement this / where is the code in core that I can examine?
Add another works just like the examples in the Examples project: Use a AHAH-enabled submit button, and build the form with another <whatever> field. Essentially, you're driving it with a submit instead of a select or checkbox like in the example.
The D7 AJAX example has an explicit example of add-more - You may want to roll it for D6 and we'll add it to the Examples.
Using AHAH to add multiple new fields
Hello-
I'm looking for help using AHAH to add new fields, much like when you have a node fields with an unlimited number of values. There is a button that says 'Add Another Item'. How can I implement this / where is the code in core that I can examine?
Thanks!
Jeff
Los Angeles, CA
Add-another and node form
Hi Jeff-
Add another works just like the examples in the Examples project: Use a AHAH-enabled submit button, and build the form with another
<whatever>field. Essentially, you're driving it with a submit instead of a select or checkbox like in the example.The D7 AJAX example has an explicit example of add-more - You may want to roll it for D6 and we'll add it to the Examples.
-Randy