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

SeyV’s picture

Title: Inherit previous values » Inherit values from term reference
LNakamura’s picture

Component: Multiple values - allow new values » Single values
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Hi, @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!