i tried to use this in url:


content type 'material' has entity field 'field_material_category'

number '6' is nid of node content type 'material_category'

But this url link doesnt work at all, field is empty....

What i am doing wrong?


If you want to pre-fill a field value on the add form with the query string, you can use the Prepopulate module.

  • 1
    @OnengLar You need to read the docs, which is why your question has a negative score. The module page I linked to has an example with code showing how to use prepopulate with an entity reference field. – Patrick Kenny Dec 7 '20 at 10:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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