Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After setting up a field with entityreference_prepopulate, going to the URL with a parameter doesn't prepopulate the field, insetad it just goes back to the basic "Add content" page.
If sent without any parameter then it gives an error or hides the field according to settings. However it does not prepopulate the field when supplied with an appropriate argument.
Comments
Comment #2
eaglegamma CreditAttribution: eaglegamma as a volunteer commentedIs one supposed to have e.g. pathauto installed? I don't see much in the way of documentation...
Comment #3
Shawn2516 CreditAttribution: Shawn2516 as a volunteer commentedI had the same issue. Basically what you have to do is make sure that you input the machine name, rather than your field name.
So if you have a field called names, the machine name should be field_names.
So it would be add/people?field_names=1.
Also, your equal sign has to point to a number (your NID). It does not take string arguments and won't work.