4

My website has three content types: company, product & review.

1). The product has a field referenced to a company node using Node URL Reference module.

2). The review has two fields, one referenced to company node, another referenced to product node.

The question is how to implement the item 2) following the behaviours described below:

  1. While creating review node from company node, the product field should be updated to the products which belongs to that company.
  2. While creating a review from product node, the company & product fields should be auto-filled.

Could you help me? I research this issue for several days but haven't resolved completely. Thanks a lot.

2
  • did you take look at Node URL Reference module read me? Check the section under 'Advanced: Build your own links'
    – Ziftman
    Commented Jan 28, 2018 at 0:21
  • How are you creating the review node from the company node?
    – Amy
    Commented Apr 6, 2018 at 20:33

1 Answer 1

0

Try entityreference_prepopulate

This will allow you to create a link with query string to pre-fill selections on an entity reference form field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.