Skip Navigation

[Resolved] Category and Subcategory in CRED

This support ticket is created 5 years, 1 month 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)

This topic contains 2 replies, has 2 voices.

Last updated by sergeP 5 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1366333

Hello,

In a CRED form, I would like to have the possibility to add :
1./ One category select field "country"
2./ Conditionnally show the sub-category select field "Region"

The second select field would only show the subcategory of the category selected in the first field;

Example :
CAT: USA
-------- Sub Cat : New york
-------- Sub Cat :San francisco

is that possible with Select2 ?
If possible, I would like to avoid creating conditional fields for 190 "countries" and 5000 "Regions":)

Thank you very much in advance,
Best

#1366459

Hi, unfortunately hierarchical inputs like this aren't offered in Forms. The only way I'm aware of to set up conditional hierarchical inputs like this in Forms is to use conditional groups and create all the individual inputs with generic fields, populated with filtered Views of terms. It's not an automated process, unfortunately. Any other solution will require custom code that falls outside the scope of our support forums.

#1370009

Ok, I see . Thank you!