Hallo,

i have a problem with this module. When i turn it on, i cant use it in taxonomy term autocomplete field. When i does it is not only showing nothing, but also it not allowed submit a node with it on apple OS X.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maximpodorov’s picture

Do you mean any taxonomy term reference field with autocomplete widget creates a problem?

kryber’s picture

Yes! When i am using the FDT there, it is not working. When i press submit and come back, its not there. But when i am using it in text field, it is.

maximpodorov’s picture

OK, I understand. Will fix this.

kryber’s picture

Thank you. Really looking forward. And i also noticed, that when i am using it like this (with taxonomy term reference field), it gave me an error on apple devices when i submit a node with taxonomy term reference using Field default token. After i press submit, on apple os x it goes to the redirected error page. Just on Apple os x. On Windows the node submision went ok.

Ivan Simonov’s picture

Confirm it.
Default value token can not be saved for taxonomy term reference field with autocomplete widget.

Ivan Simonov’s picture

Taxonomy term reference field with dropdown list widget do not use saved default values too.

fyberoptik’s picture

Very interested to see this working :)

sarazil’s picture

I'm also having this issue. It refuses any non-vocabulary term as that's how the field is designed. Best solution would be for it to validate things after token swapping has occurred and to accept valid tokens as alternatives to vocabulary terms. (I'm running drupal on an ubuntu VM)

kopeboy’s picture

Title: Doesnt work when using in taxonomy autocomplete term » Doesnt work with taxonomy terms
Issue tags: -apple

I actually can't see the default value at all, neither using Select list nor Autocomplete.

Using mac os x and both chrome and safari (but I don't get why this should be relevant) and Display Suite module (Default one column layout) on the node add form page.

The problem is not only on the node/add form but also on the field/edit page. If I set the default token value and save the field, reopening field for editing already doesn't display the default value just saved.

I also tried to set both the source and target field setting to be limited to 1 value.

What I'm trying to do (I think this is the most common use case) is to load the same field value saved on another entity, referenced to the Current user with an Entity Reference field.
In my case for example:
[current-user:profile-spouse:field-my-wedding-link:field-wedding-location]

So, are Term Reference fields supported at all by this module?

carteriii’s picture

I believe the underlying problem may be with the widget and not simply with taxonomy terms specifically. I have an, "Autocomplete (Tags style)" widget in use to set an EntityReference field for a user entity but using either [current-user:uid] or [current-user:name] results in an error like:

There are no entities matching "[current-user:uid]"

. The field outline/border shows red with that in it, so I suspect it's the widget which causing the failure even with taxonomy terms.

ikeigenwijs’s picture

Same issue but with
entity reference fields.

auto complete widgets wants to validate the token instead of the replaced value of the token

"Researcher: found no valid user with that name."

nixar’s picture

I'm having the same issue right with a Select widget. The DB query expects an integer value even after I checked the box to assign a taxonomy term name and not a term ID.

CD’s picture

Anyone come up with an answer?

internal’s picture

Version: 7.x-1.2 » 7.x-1.3
Priority: Major » Critical

Confirmed here. It should be a critical bug that should be added to the project page. It seems it only works with nodes.

gdhp’s picture

In reference to number #11 - same problem here.

Would be great if we can get a patch for this.

maximkashuba’s picture

Adds support for the taxonomy term autocomplete widget

dmsmidt’s picture

Title: Doesnt work with taxonomy terms » Taxonomy terms reference autocomplete widget broken
Status: Active » Needs review

I fear multiple issues with taxonomy terms are overlapping here.
Let's focus in this issue on the autocomplete widget.

Setting to needs review.

jonnyeom’s picture

I am unable to use this module when using a user reference field (available with the references module) in the same manner as a taxonomy term. Has anyone else tried to use field_default_token this way?

dmsmidt’s picture

Have you tried https://www.drupal.org/node/2790059#comment-11570429?
It aims to make this module more generic.

Donit’s picture

#16 doesn't work.

purushotam.rai’s picture

Patch #16 works for me, but I would recommend validating vocabulary_machine_name instead of vid.

Status: Needs review » Needs work

The last submitted patch, 21: field_default_token-taxonomy_terms-2194803-21.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.