Skip Navigation

[Resolved] Restrict Adding New item in taxonomy type flat on cred form

This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 2 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#2444035

Tell us what you are trying to do? Restrict Adding New item in taxonomy type flat on cred form

Is there any documentation that you are following? no

Link : hidden link

I want to restrict adding new item in taxonomy type fat on cred form. I have taxonomy product category , type flat. I added this taxonomy on cred form but problem is user can also add new item in taxonomy. I want to restrict users only to select from existing product categories.

I know its possible if i choose taxonomy type Hierarchical, I have 70000 product categories. it take too much time to load in select box. it this case taxonomy type flat works fine but issue is user can also add new product category. i want to restrict adding new product category by user on form or on checking after clicking submit button.

Thanks

#2444095

Hello,

I have checked the URL you mentioned above, it seems you have already fixed this issue.

And you just need to edit the Toolset post form, find and edit the taxonomy field, Enable the option: Do not let visitors add new terms.

#2444097

Hi,
issue is not fixed.

There is first field(last child 2) i want to fixed on hidden link

I have taxonomy type flat, so there is no option Do not let visitors add new terms

plz. check

Thanks

#2444113

You are right, there is no option for the flat taxonomy field.

See our document:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_field

display. Optional. Used by fields for Hierarchical Taxonomies (like Categories) to signify the mode of display (ie. “select” or “checkbox”).

You can only display the Hierarchical Taxonomies as select or checkbox field, it won't work with flat taxonomy.

So there isn't such kind of built-in feature within Toolset plugins, can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.

Currently, you might consider to switch the flat taxonomy to hierarchical taxonomy.