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.
Currently I am trying to 'inherit' term references. I have a term reference to Tag, where the user can tag his content with certain terms. I would like to provide an option so that the user can 'save and inherit'. This so the tag terms are inherited into the new node. I have been able retrieve the selected values + throw these to the next node.
How can I put these values into the autocomplete_deluxe field? I have been experimenting with $form['field-name']['#default_value'], prepopulate module & javascript, but no luck so far.
Thanks in advance!
Comments
Comment #1
SeyV CreditAttribution: SeyV commentedComment #2
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedHi, @SeyV - did you ever work this out?
If not, and if you're running the 2.x branch (1.x is no longer supported), see #1792682: Setting a value using Forms API on Autocomplete Deluxe fields where I answered a similar question a short while ago.
Let us know - thanks!