Skip Navigation

[Resolved] displaying categories based on custom field

This support ticket is created 4 years, 8 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 4 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1636847

Tell us what you are trying to do?
I have a custom field called Coach's Focus
It has two options (Single, Couch)
Depending on which option - or both is selected - I would like to show a set of categories listed. I have the form setup but it is not responding as I expected.
I have followed the instructions from the links below but as I said, they are not working as expected.
Is there any documentation that you are following?
https://toolset.com/forums/topic/conditional-fields-in-cred-form/

Is there a similar example that we can see?
https://toolset.com/forums/topic/conditional-fields-in-cred-form/

What is the link to your site?
hidden link

#1637391

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share access details so I can check how you configured your conditional display.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1637573

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Unfortunately - admin access details you shared with me is not working at this end. Can you please send me working access details.

I have set the next reply to private which means only you and I have access to it.

#1638581

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you. Access details working at this end now.

Can you please check now: hidden link

I've switched to the expert mode of the form and I've added the [cred_show_group] shortcode as given under.

[cred_show_group if="( $(coach-focus-tax) eq 'Couples' )" mode="fade-slide"]
        [cred_field field='couples-coach' force_type='taxonomy' output='bootstrap' display='checkbox']
         [cred_field field="couples-coach_add_new" taxonomy="couples-coach" type="add_new"]
     [/cred_show_group]
	[cred_show_group if="( $(coach-focus-tax) eq 'Singles' )" mode="fade-slide"]
           [cred_field field='singles-coach' force_type='taxonomy' output='bootstrap' display='checkbox']
        [cred_field field="singles-coach_add_new" taxonomy="singles-coach" type="add_new"]
    [/cred_show_group]

I can see it working.

#1638583

Good morning Minesh
I am also having a problem with the following forms :

Create Couples Coaching Listing -
hidden link

Create Singles Coaching Listing -
hidden link

They did function (see ticket https://toolset.com/forums/topic/conditional-fields-in-cred-form/) however I added the profile identifier field and now they are not working. I am not sure what I have changed but this is a real problem for me. I am not going to be able to get clearance for funds to renew my license if I can not get these conditional fields working. I am sure it is something simple that I am missing but can you please be precise in letting me know what was wrong.

Thank you

#1638603

So the specialties are working great - I just need to remove the ability for the person filling out the form to add a new listing to the taxonomy. I am pretty sure I can fix that myself.

THANK YOU SO MUCH

#1638609

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

For now, Can you please make sure that you switch to "Expert mode" of form and then try to add your conditional group and see it that works expected. If yes, it look like the issue is from GUI but when you switch to "Expert mode" of form and add your conditional statements, it works.

Can you please check and I will test this tomorrow and If I see the issue will report the issue. For now, you go with Expert mode to edit your form.

#1638745

So this is actually a bug - as I think you found.
When adding a conditional field from the "non expert" setup - the field that is set within the conditional statement does not actually register. If I switch to expert mode then I can insert the field and it works.

Thank you again so much for your help.

#1638753

Found a bug!
My issue is resolved now. Thank you!

#1639629

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Just to let you know that I do not see the issue when I add the conditional groups using GUI. If you see this issue, please feel free to file a new ticket and we are happy to investigate the issue further.