Navigation überspringen

[Gelöst] Conditional Block: Cannot add second custom user role

This support ticket is created vor 1 day, 2 hours. 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 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 5 Antworten, hat 1 Stimme.

Zuletzt aktualisiert von barbaraK-3 vor 4 hours, 35 minutes.

Assistiert von: Minesh.

Author
Artikel
#2863571

I have a problem with the Toolset Conditional Block.

I want to display content based on different user roles.
In the Conditional Block, I first add this condition:

Current user role = Other role > Mitglieder

This works so far.

Then I click the plus button to add another condition for another role.
The new condition starts again with:

Current user role = ...

But at this point I want to choose another “Other role”.
The problem is that “Other role” is no longer shown in the dropdown/list, so I cannot select a second custom role.

In the Toolset training video, it looks like this should be possible. That is why I am not sure whether this is a bug, a limitation in the current version, or whether something has changed in the interface.

What I want to achieve is:

Show this block if the current user has the role “Mitglieder” or another custom role.

Could you please tell me how to add more than one custom role to the same Conditional Block?

Thank you.

#2863591

Minesh
Unterstützer

Sprachen: Englisch (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please tell me with what training video you see that's possible.

Can you please share problem URL and admin access details. Other role will not give you dropdown with other role but maybe textbox.

Can you please tell me what exactly codition you want to build with other role and current role ad I will see if there is any other workaround.

#2863597

Hello Minesh,

thank you for your reply.

I have created temporary WordPress admin access. Here is the temporary admin link:

versteckter Link

For now, I have not provided FTP access because the issue seems to be related to the Conditional Block settings in the WordPress admin area. If FTP access is really necessary later, please let me know why it is needed.

Here is the training video where I saw that this should be possible:

https://toolset.com/course-lesson/using-toolset-conditional-block/

The problem is not that “Other role” does not show a dropdown or that I do not see a textbox.

The problem is that “Other role” is not shown at all when I add the second condition.

The first condition works:

Current user role = Other role > Mitglieder

But when I click the plus button to add another condition for another custom role, I can choose “Current user role” again, but the option “Other role” is no longer available.

So I cannot enter or select another custom role at this point.

What I want to build is:

Show this block if the current user role is “Mitglieder” OR if the current user role is another custom role.

Could you please tell me how I can add the second custom role if “Other role” is not available in the second condition?

Thank you.
Barbara

#2863602

Hello Minesh,

I forgot to include the page URL in my previous email.

Here is the page where you can see the problem:

versteckter Link

Thank you.

#2863644

Minesh
Unterstützer

Sprachen: Englisch (English )

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

I can not login using the temp link you shared.

Can you please send me working admin access details.

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

#2863654

Minesh
Unterstützer

Sprachen: Englisch (English )

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

I'm not sure what its not working for you. For me it does work.

please check the following video:
- versteckter Link

I've added second role and if you want to change it you an edit the condition block and change it accordingly.

#2863660

Hello Minesh,

thank you for checking this and for the video.

You are right, it works.

The reason I did not find it was that I expected “Other role” to appear again in the dropdown list. I did not realize that I had to type the role directly into the field.

Now I understand how to add the second custom role.

Thank you for your help.