Comments

Cauliflower created an issue. See original summary.

Cauliflower’s picture

See patch attached to allow prepopulate for references with radios.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

This looks good.

portulaca’s picture

Thank you for the patch, it's working!

Before the patch I tried with 2.0-alpha1 and 2.x-dev version and "Check boxes/radio buttons" (on Manage form display page) didn't work, while other options did work (Autocompletes and select list).

With the patch applied the "Check boxes/radio buttons" also works, the correct option gets selected. I used this syntax (the same for all options):

/node/add/article?edit[field_project_reference]=2

aswathyajish’s picture

This patch worked for me. Thanks for your update.

My prepopulate version is 8.x-2.0-alpha1.

akalata’s picture

Status: Reviewed & tested by the community » Needs work

Reroll needed to apply on 2.x-dev.

portulaca’s picture

Reroll please, patch can't be applied to the latest dev version.

heddn’s picture

Status: Needs work » Postponed (maintainer needs more info)

https://cgit.drupalcode.org/prepopulate/tree/USAGE.md?h=8.x-2.x has some details on how to use this module. Perhaps it will assist with solving this issue here?

heddn’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

All these concerns should be addressed in https://www.drupal.org/project/prepopulate/releases/8.x-2.1. Please read the usage docs and the tests in https://cgit.drupalcode.org/prepopulate/tree/tests/src/Functional/Prepop... for examples how to use this module.