views:

287

answers:

1

I have a custom Drupal FAPI form that supports a fairly complex workflow and I would like to add a Nodereference field to it. Although I've found people who have included Nodereference fields on custom forms, I have been unable to find any examples of the FAPI declaration for the field (other than this question which uses a text field with the Nodereference AHAH callback: Is it possible to customise drupal node reference and pass your search and a argument from another field).

So: what is the best way to add a Nodereference field to a custom form (FAPI)?

Bonus question: is there a simple way to allow for multiple values like CCK supports in a node form? Multivalue Nodereference Field in CCK Node

+2  A: 

Starting learning ahah here: http://stackoverflow.com/questions/1836549/add-another-item-in-non-cck-drupal-forms

Someone who try investigate this: http://drupal.org/node/266584#comment-870376

Nikit
Thanks for the pointers: looks like the info you provided would cover the 'bonus' part of the question.
JavadocMD

related questions