How to disable adding new terms via the autocomplete deluxe module for taxonomy terms?

Drupal Answers Asked on December 13, 2020

I’m using the autocomplete deluxe module for taxonomy terms in my fields. I want to prevent users from creating new terms during content creation. How can this be done?

One Answer

You can use the content taxonomy module:

On the content type fields that are taxonomy reference fields there will now be an extra option that says: Deny any new terms checkbox

It will throw this error when creating a new term:

Client: new terms are not allowed. Please choose from the suggested options.

Apparently there are other solutions I found aswell: -- but it isn't working for autocomplete deluxe.

And there were a few discussions where it involved hacking core to disable it. The content taxonomy module seems to be the only way. It would be better if we didn't have to install another module.

Answered by Patoshi パトシ on December 13, 2020

Add your own answers!

Related Questions

KernelEvents::REQUEST is not fired on cached pages

2  Asked on December 8, 2021 by user34185


Add column to custom field schema

3  Asked on December 8, 2021 by coder1


Order receipt email content

1  Asked on December 8, 2021 by pete-l


Date time save in database

0  Asked on December 8, 2021 by pratip-ghosh


How can I create a recommended project in the root directory?

2  Asked on December 6, 2021 by user2574948


Wrapping fields together in a Views Exposed Filter

1  Asked on December 4, 2021 by typologist


Submit form and disable submission button

7  Asked on December 4, 2021 by matt9292


How to check if an entity is referenced before deleting?

2  Asked on December 2, 2021 by halofx


Add class to {{ link }} twig attribute

3  Asked on December 2, 2021


Remove field attributes using hook_form_alter()

1  Asked on November 30, 2021 by senthilkumar


How to send email to submitter in a webform?

2  Asked on November 30, 2021 by cel57


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP