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

eaglegamma created an issue.

eaglegamma’s picture

Is one supposed to have e.g. pathauto installed? I don't see much in the way of documentation...

Shawn2516’s picture

I 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.