Skip Navigation

[Resolved] Conditional Taxonomy Selection

This support ticket is created 2 years, 7 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#2155263

I have a CPT setup with custom fields. One of the primary fields forces the user to choose between 3 Category / Taxnomy options which then displays specific fields to be filled and displayed for that that taxonomy.

Is it possible to have that taxonomy auto selected based of the above mentioned selections field or would the category first have to be selected. Prob is that users overlook that taxonomy and start filling other sections of the post before thinking of the taxanomy. Alternatively is there is a way to force users to first select taxanomy and hiding the fillable fields including stock description and title fields unless taxonomy is selected.

#2155347

Toolset Forms allow you to use conditional groups to show and hide input fields based on the selections in other fields or taxonomy inputs. However, in wp-admin, the same features are not available. So it depends on whether your Users are submitting content in front-end Forms or in wp-admin.

https://toolset.com/course-lesson/conditional-display-for-form-inputs/

#2155353
Screenshot 2021-08-30 at 14.52.43.png
Screenshot 2021-08-30 at 14.52.57.png

Thank you. I am going to work via the wp-admin for now. I have setup a simple conditional custoim fields group. I am howver struggeling with the OR option as I have added 2 conditionals where either one can be selected to make the field availabel to fill. Mt problem is that only the first conditional rule work and the second one does not show when selected. See attached screen shots.

#2155627

Hello, can you tell me if you are editing this post using the Block editor, or the legacy (classic) post editor? I'm able to replicate a similar problem in my local environment when editing a post using the legacy (classic) post editor, but not the Block editor. I'd like to confirm the behavior is what you are currently experiencing.

#2155989
Screenshot-2021-08-31-at-10.36.33.jpg

Morning, I am using the "Post forms" option under toolsets. dont see option to use Classic vs Blocks editor

#2156289

Okay I understand better now, you are managing conditional field display in the field group editor, and expecting to see the conditional results applied in the fields displayed in a Post Form. Is this Form a New Post Form, or an Edit Post Form?

#2156751

New Post Form

#2157633
Screen Shot 2021-09-01 at 4.19.44 PM.png
Screen Shot 2021-09-01 at 4.09.40 PM.png

Okay in this case I would probably utilize Forms conditional groups to create the same conditional scenario. Drag a new conditional group into the Form builder (from Extra elements), and add conditional criteria based on the same Type Document select field values. Once you've applied the conditional criteria in this conditional group block, you can then drag other blocks inside the conditional group block. Any nested blocks will be displayed only if the conditional criteria you set in this conditional group are met.

Similar setup in this screenshot. I'm testing whether the value of a numeric field is 1 or 2. If so, the book-chapter-date-1 field will be displayed in my Form.

#2159841

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.