Closed (outdated)
Project:
Prepopulate
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
2 Sep 2018 at 13:43 UTC
Updated:
20 Feb 2019 at 16:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
vj commentedPatch which worked for me.
Comment #3
heddnUse the full render array path to the element. This includes things like delta, widget, etc.
Comment #4
kelvinwong commented$form['widget'][0]['value']['#value'] is not always the structure for all field types. I have provided a patch in the ticket below, it should cover the field structure in most cases.
https://www.drupal.org/project/prepopulate/issues/3017136
Comment #5
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 #6
heddnComment #7
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.