Subform Element does not allow passing of nid information to subsequent forms
Guess we're back to:
http://api.drupal.org/api/function/drupal_execute/5
and
http://www.civicactions.com/blog/cck_import_and_update
Because subform element is not the way...
No, subform element has no solution for us:
Any recommended ways to get the nid of a node you just submitted in a subform to pass into the next subform?
The use case (WSF2008) is two forms merged into one, which are related in such a way (nodereference, a node belonging to an organic group) that the second form needs a value that exists only after the first form is processed.
So the question involves
1) setting the order subforms are submitted
2) obtaining information post-submit for the first one
3) passing that information into the array representing the second one before it is submittedUpdates
#1 submitted by fago on October 23, 2007 - 07:50 updated
Status: active » fixed
no, getting the nid isn't supported by normal forms either. try using nodeapi op insert/update to get the nid.@order: the forms should be processed in the order they appear in the form tree
2,3) it doesn't provide anything for that, but it should be possible to achieve it - however it might get unclean and complicated.
UPDATE: In fact, the author of the addnode module does use subform element to get the nid of the node submitted by the subform.
Follow along with the make a node while making a node madness over here.
Comments
Post new comment