I would like to have node reference to work like text field sometimes. I am
developing a social networking site. One of the content type in my site is
"Event" it has two autocomplete node reference field to content type "venue"
and "band" respectively. (Registered users are allowed to create nodes of
any content type).
The thing i would like to achieve here is the "band" and "venue" field in
"Event" content type should turn into normal text field when the node being
referred is not in the auto-complete list. Is there any module or API
function to do this ?
I found nr_autocomplete [1] module in google search which does something
similar to what i need but it is available only for drupal 5. Please share
your thoughts on this.
[1] <a href="http://drupal.org/project/nr_autocomplete" title="http://drupal.org/project/nr_autocomplete">http://drupal.org/project/nr_autocomplete</a>
Comments
Re: node reference as text field
By Earnie Boyd at 09/23/2009 - 08:51Quoting "sivaji j.g" < ... at gmail dot com>:
Have you seen
<a href="http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#autocomplete_path" title="http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#autocomplete_path">http://api.drupal.org/api/drupal/developer--topics--forms_api_reference....</a>?
Re: node reference as text field
By sivaji j.g at 09/23/2009 - 09:55On Wed, Sep 23, 2009 at 6:21 PM, Earnie Boyd
< ... at users dot sourceforge.net>wrote:
Thanks for the link, May i know what you are trying to convey through the
above link.