@claudio30 – You cannot do that in the way you are thinking. Though you can add your own custom Targeting Conditions and have them call a conditional php function such as is_my_custom_check_true().
Several examples here: https://gist.github.com/danieliser/01bf9f4f3952acb6ed97ac8e5f42872c
Hope that helps.
Beyond that just set up an auto open trigger, if your condition is true it will load and open automatically.
Hello Daniel, thanks for your answer I was able to do my custom trigger conditions based on those examples you gave me, it was very clear.
One final question, those targeting conditions are applying to an auto open trigger as I wanted, but it’s also applying on the click open trigger, and what I want is that the popup always opens on click but only auto open when my custom target conditions are true.
How can I do that?
Thank you very much.
Claudio.
@claudio30 – In that case you would need to instead filter the triggers and remove the auto open trigger when your check fails.
Basically conditions are not attached to triggers, they are attached to the popup itself, so you would need to either create 2 popups or instead filter the triggers that get sent to our JS and remove auto open when needed.
Hope that helps
Hello Daniel, how can I filter the triggers that get sent to the JS and remove auto open when needed?
Thank you very much!
Claudio.