Skip Navigation

[Resolved] hide the value of the field if value like specific value

This support ticket is created 3 years 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9: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: Africa/Casablanca (GMT+01:00)

This topic contains 1 reply, has 2 voices.

Last updated by Jamal 3 years ago.

Assisted by: Jamal.

Author
Posts
#2220443
email2.JPG
email.JPG

Dears,

I have email field with specific pre-entered email value example, 45@test.om

I would like to hide the email if the email ends like @test.om

and show email if its end not like @test.om

how to do it?

#2220647

Hello and thank you for contacting the Toolset support.

This will require custom code. Conditional blocks and shortcodes can accept a custom shortcode or a custom function in their conditions. The custom code or function needs to be registered in Toolset->Settings->Front-end Content. Check this article for examples https://toolset.com/documentation/programmer-reference/views/using-custom-functions-in-conditions/

I hope this helps. Let me know if you have any questions.