Use selected NID from Entity Reference field to populate second Entity Reference field I have three content types:


organization profile
internship posting
hours submission


The 'hours submission' content type has two entity reference fields:


Entity reference for 'organization profile' nodes
Entity reference for 'job posting' nodes


I'd like to pass the NID from the first entity reference such that the second entity reference is filtered (only shows nodes that are associated with that NID).

The 'job posting' content type is tied to an 'organization profile' via an entity reference field.

Any help or guidance would be appreciated.
My solution is to:  


Pre-populate and disable the first entity reference field with a node ID
Add an extra path component with the same nid and have the second field use an entity reference view with default: Path Component 4


So the URL looks like /node/add/hacky/123?field_solution=123.

While hacky, it has uses, especially if you want to filter fields that don't have a connection. In that case the URL could be /node/add/hacky/123/456?field_solution=789.