Not sure if this is even possible (well I guess everything is possible), but here goes.
I have a group structure where the group manager can create questions for other group members to answer. Those questions currently fill a select list in the group content posts via entity reference.
Here is the hard part:
I want to let the group manager determine the number of specific questions all members must answer. So if the manager wants members to answer questions 1,2, and 4, then when the member clicks the create content link, the node edit form will have fields for questions 1, 2, and 4. If the manager only wants them to answer question 3, then the node edit form will have a field for question 3 only.
I thought perhaps one way to accomplish this would be to pre-create a bunch of hidden entity reference question fields which relate to selected question fields in the group node and somehow unhide the correct number of fields based on the number of selected questions in the group node.
This is beyond my pay grade. Anyone have any suggestions?
Thanks,
Jason
Comments
What you need are conditional
What you need are conditional fields or a modified version of it if the capabilities are not sufficient to your needs : https://drupal.org/project/conditional_fields. Trying to do this through entity reference will needlessly complicate your setup.