By FiReaNGeL on
Scenario: learning form API. Built myself a nice form with a list of aggregator items, with associated checkboxes. I click some checkboxes, hit submit. Now I want to : do some processing on the checked items (I think I got that right), and then rebuild a form with fields resulting from this processing.
All multiform docs I found were for FAPI 1.0 and 4.7.x. Not sure of how one would do that in 5.x.
Comments
Eaton to the rescue
http://jeff.viapositiva.net/drupal/dynamic-forms
- Robert Douglass
-----
Lullabot | My Drupal book | My Digg stories
I Have the same type of question
I made a module working with 4.7 and i can't make it running with dupal5 FAPI. I read the very interresting article from jeff, but i am not sure how to solve my problem.
My purpose is making a search form.
- Before displaying the result data i want to display first that form with searching value in that form, and the result data under it.
- I want a second button to make a new search which empty the form.
Here the result code i made, but it is not working. Please, any suggestion ?? Maybe a different structure ?
Anybody has an idea ??
Comment would be very welcome
Saw that very interesting
Saw that very interesting tutorial just after I posted this, and after an hour or two of banging my head against the wall (because I misunderstood timing of $form_values), it solved all my problems :) FAPI is awesome up so far, and not hard to understand at all.
---
Biology News Net
---
e! Science News