Is it possible control multiple field hierarchy with a single field? For example, assume the following hierarchy:

  • Company
    • Executive
    • Employee
    • Administrative assistant

If we use separate hs_nodereference fields for executive, employee, and administrative assistant everything works ok. However for all these three fields the user needs to first select the company to filter the results for executive, then repeat the same for employee and admin. It would be really nice if selecting company field once, all these fields are filters for the selected company.

Comments

jrao’s picture

Of the top of my head, I don't see an easy way to do this, since each node field is rendered separately, this feature requires we connect different fields together.

JMTorres’s picture

I also need this functionality. My current theoretical solution does not use HSNR, but depends on Node Relationships. The problem with my solution is that although the selection modal may be limited by the selected parents, the user can still bypass it and use the autocomplete.

Ultimately, being able to do this with HSNR would be a much better solution.

jrao’s picture

Status: Active » Closed (won't fix)

I'm not convinced this should be done by this module, it looks to me that only 2 level hierarchy can use this feature. I think the feature we need here is to allow the selected value of one field in the node form (Company in the example) to change the selection options of other fields (Executive, etc), the trigger field does not have to be a node reference, the other fields should be node reference, the nr views integration can probably be used here, plus some ajax magic. I'm not sure if there're existing modules for this, but I think it should be implemented as a separate module, so marked as won't fix for now.