Skip Navigation

[Resolved] Form Add New Content with Custom Field Taxonomy Dependant

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup the conditional display for Form Sections.

Solution:

You can follow our document to setup the Conditional Display for Form Sections:

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/

This support ticket is created 3 years, 6 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 5 replies, has 2 voices.

Last updated by ericL-2 3 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#2121815
screenshot-www.businesshood.com-2021.07.22-11_43_42.png
screenshot-www.businesshood.com-2021.07.22-11_35_28.png

I created a form using toolset block form for adding custom form content. There are several custom fields (group fields) which should only be displayed for editing if user select a particular Ad Category taxonomy for the post content.

Instead, the frontend toolset form displayed all fields for editing for end user. But using dashboard using post Add New correctly display the conditional fields for entry only after a particular Ad Category taxonomy is selected.

In the toolset edit post form, the some fields from conditional is display as locked and cannot be removed?

I added conditional group, but it does not provide any condition for Ad Category taxomomy.

The frontend add form is at hidden link

The purpose is to display certain relevant entry fields based on Ad Categories taxonomy such as vehicle model entry for vehicle category, job type field for job category, etc.

Kindly advice how to display releant fields based on taxonomy conditions.

#2122087

Hello,

Q1) But using dashboard using post Add New correctly display the conditional fields for entry only after a particular Ad Category taxonomy is selected.
In your screenshot:
https://toolset.com/wp-content/uploads/2021/07/2121815-screenshot_www.businesshood.com_2021.07.22_11_35_28.png
The "Appear on" specific taxonomy term setting won't apply to post form, you can follow our document to setup the Conditional Display for Form Sections:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/

Q2) In the toolset edit post form, the some fields from conditional is display as locked and cannot be removed?
I assume we are talking about some "Required" custom fields, it is expected result, they are locked and can not be removed within normal form editor, but you can switch to "Expert" mode, and remove them in form editor.

#2122231
screenshot-www.businesshood.com-2021.07.22-18_40_32.png

If user select a particular taxonomy in Ad Categories in the form, how then can I display the fields defined in Field Group for that taxonomy?

What to put into the edit condition group? putting [cred_show_group if="($(ad-category) eq 'jobs')" mode="fade-slide"] inside did not work

#2122919

Hi.

Any update on this?

TQ

#2122987

I assume we are talking about a custom taxonomy "ad-category" and term "Jobs",

Please try to modify the condition as below:

[cred_show_group if="($(ad-category) eq 'Jobs')" mode="fade-slide"]
...
[/cred_show_group]

and test again

#2124281

My issue is resolved now. Thank you!