Jump to content

How to Check if a Field Contains specific value in PHP Output Format?


JAN44

Recommended Posts

I’ve been battling with a tiny piece of PHP in the Output Format area for 3 hours straight, and I’m starting to lose hair 😅.

What I want to do: check if the jr_remote field contains the value "Remote-allowed" to decide whether to show the current field’s output or not.

If jr_remote contains "Remote-allowed" → block the display or show a special message

Otherwise → display normally (output)

I’ve tried many codes with the help of chatgpt, gemini … but nothing works the way I want 😓.

Does anyone have a simple and clean trick to do this in a PHP Output Format field?

Thanks in advance for your help—my hair thanks you too!

Link to comment
×
×
  • Create New...