[Resolved] I can't display in form, custom fields conditional to a taxonomy-category option
This support ticket is created 5 years, 9 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.
Hi Shane,
No, the issue is more simple.
I have a taxonomy (with two values only "Buy" and "Sell") associated to CPT and I would like to display (in an Add New Post Form) two custom fields of the same CPT, conditional to the taxonomy. Example: If within the form, the user select the Taxonomy "Buy", then a custom field called "Buy goods" to appear in the form, while selecting taxonomy Sell to appear just the custom filed "Sell Goods"
When I go to Add Conditional Group, I do not find the Taxonomy there, but just the fields.
Any shortcodes I found on the support did not work.
Please advice, thx
Thanks for the clarity I did some test on this and I can verify that this does not work as intended.
However I was able to get it to work under a very specific condition. On your taxonomy in the edit form page you will need to change display="checkbox" to display="select". This will change the field to a select.
Next thing is that instead of using the slug or name of the taxonomy term, you will need to use the ID of that term in the conditional group. Here is an example below.
So as you can see i'm checking the category taxonomy if the user has selected the term with ID 35. Now you can find the ID of the term when you go to your Post Type -> Taxonomy Name and then clicking on the term to go to it's edit page.
If you look in the URL you will see a parameter called tag_ID and this should give you the ID of the term.
I'll open a ticket with our 2nd tier support for further clarity and debugging on this one for you.
It is actually a known issue by our development team, from what I see on our internal ticket on the issue, the fixed version is set to version 2.3 of Toolset Forms.
I'm not sure when this one will actually be fixed but my workaround works well locally.
Could you possibly send me a link to the form so that I can see exactly what we are working with ? Hopefully we can get to a workable solution.
Hi Shane, attached are the printscreen of what I would like to do. If in the add new form the taxonomy (select) is Buy (id:1032), then to display a text or do anything else related to custom fields/display one , appreciate your availability to support
thx .V
Thank you for the credentials but it seems you site is on a private server so I would need access to this as well because i'm getting the login prompt when visiting the link.
I'll enable the private fields once more.
Thanks,
Shane
Hi Shane, sorry that I forgot there is a server password, below are the details
user: enter
password: zaq098&
In the meantime our IT deleted the test form, but please create a simple test one that can execute that task and that will be fine for us, thanks a lot