Skip Navigation

[Resolved] Condital block add a "Contains" so any link with the word "giraffe360" shows

This support ticket is created 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Shane 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2138655
2021-08-10 09_59_22-Edit Content Template ‹ Saxe Coburg — WordPress — Firefox Developer Edition.jpg
2021-08-10 09_59_29-Edit Content Template ‹ Saxe Coburg — WordPress — Firefox Developer Edition.jpg

Tell us what you are trying to do?

On this page - hidden link - I have a field i created called "Property Virtual Tours" and I need to set a condital filed on the front end that only shows a button if the "Property Virtual Tours" field contains the word giraffe360.

I made a condinatal block but can't see a option for containing a word.

Can you please check this and show me how i achive this

Is there any documentation that you are following?

Images attached

What is the link to your site?

Backend product - hidden link

Link to the front end editor (If you scroll down you will see my condinatil block at the bottom) - hidden link

Front end of the product - hidden link

#2139347

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Thank you for getting in touch.

Can you let me know what kind of field this is ?

I'm assuming this is either a single line custom field or a URL field.

Please let me know.
Thanks,
Shane

#2139401

Hello it is a URL field

#2139559

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Alex,

Given that this is a URL field you won't be able to check if the field contains a specific text using our Conditional Block.

The conditional can only perform exact matches, so you will need to do the conditional to match based on the exact value of the field.

The only other way that I can think of resolving this is to write a custom function that will check if the field contains that specific value.
hidden link

Thanks,
Shane