By Andrei Toutoukine on
Dear friends,
Forms API in 4.7 looks great! But I can't figure out how to do a sequence of forms.
Form 1 has a single selector for issue's ID. After the user submits this ID two froms must be displayed:
Form 2 "Change this Item"
Form 3 "Remove this Item"
It is, of course, possible to merge 1-2, 1-3 and deal with two separate forms, but I don't like this solution.
Previously (4.6) I had TWO submit buttons 'Remove' and 'Change' in Form 1. That was handy, but for 4.7 it is impossible without hard-coding these two buttons, say, in '#suffix' or whatever. I like the data+code / look separation provided by 4.7 Forms API.
Could anyone suggest a solution?
Comments
Apologies,
My apologies to everybody:
Just found the answer at http://drupal.org/node/54753