I am using DTM and need to implement a survey that only opens on certain pages. I have no issue implementing the survey in DTM. The issue is, since the Rule Conditions work as "and" statements, the usage of the condition will not work. Is there a way in the custom code to use "or" statements for the pages that I want included in the survey?
Would I use something like the below code to have the survey pop on selected pages? Is there a way to do it in the conditions section in DTM?
When you are using custom code in rule conditions for a page load rule, you must use the boolean return true when you want the rule to fire.Hence As per the above requirement Please return true from the code. Also, Please make sure that the "Data Element" - "DOI" is available to be used in Custom conditions.
Here is the code that I have for my survey. Once I added the $.getScript, I was getting errors with the "return true", "else" and "return false". I think this work. I wanted to know if you think I am missing anything.