Hi there...

Been searching and can't figure out if this is possible.... but i really miss being able to do this...

Scenario is this:
I have a node type (events) and another node type(place), when users create an event they have a node reference field referring to node type(place). Node type(place) has a taxonomy reference field which is referring to a long list of areas/cities.

Can it be achievable when user create a node type(Event) that the field where they select the node referenced type(place) would be something like a 2 step procedure, first selecting the area/city (which is a taxonomy reference in nodetype(place) and then select those nodes in ONLY that area....

The reason is as nodetype(place) list grows big, I can't use a normal select list, would be kinda ugly with 100's of nodes...
That why I use the autocomplete widget as of now....

Comments

timos’s picture

submit

I have the same need, but with user reference field

I think, the feature should be nice for the two field type.

Maybe we can start by have the opportunity in the settings fields to choose if the field reference concern only some terms...

timos’s picture

Hi again,

So i worked on it, and i just coded a very specific and ugly snippet that work, i'll soon post it in other place, because i'm not sure if the right place to do it here.
This snippet allows to have a two step process when you attach a node (or user in my case, but it works with entity and field api so it's pretty the same thing) to your other node :
- first a select list with the term of a vocabulary (right now hard coded, but it's a prior feature to do by a setting page)
- then and ajax function is called and only displays the nodes attached to the term selected on checkboxes or radio buttons (right now hard coded too). It's only works with the form api and the field api inside a hook_form_alter.

I'd like to know if the feature is mapped on the project. If not, i could try to do a real module to give the opportunity to do that.

Cheers

Timothée Baret