Closed (outdated)
Project:
Prepopulate
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2017 at 11:36 UTC
Updated:
20 Feb 2019 at 16:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Cauliflower commentedSee patch attached to allow prepopulate for references with radios.
Comment #3
borisson_This looks good.
Comment #4
portulacaThank 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]=2Comment #5
aswathyajish commentedThis patch worked for me. Thanks for your update.
My prepopulate version is 8.x-2.0-alpha1.
Comment #6
akalata commentedReroll needed to apply on 2.x-dev.
Comment #7
portulacaReroll please, patch can't be applied to the latest dev version.
Comment #8
heddnhttps://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?
Comment #9
heddnAll 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.