I have a content type with several allowed values text fields using radio buttons.

Based on the value selected by users, I would like another field (node reference) to display.

As in:
-----------------
Field 1 has options "Yes", "No" and "Not Sure"
If user has selected "Yes", then the body of node/1 is displayed in view of node;
If user has selected "No", then node/2 is displayed;
If user has selected "Not sure", then node/3 is displayed.

Field 2 has options "Yes", "No" and "Not Sure"
If user has selected "Yes", then the body of node/4 is displayed in view of node;
If user has selected "No", then node/5 is displayed;
If user has selected "Not sure", then node/6 is displayed.

Etc...with total of 15 fields that need similar logic.
------------------

I am assuming that this logic can be added to a node-content_type.tpl.php file with some sort of if/else print statement, but am unsure of the exact syntax to accomplish.

Can someone direct me to an existing snippet or module that can be used to enable this?
Or help me construct a sample print statement that would provide the logic?

Will greatly appreciate any help.

Thanks

Comments

drwierdo’s picture

Could you make it work?? Have you found any solution?? I too am looking for accomplishing similar thing...