Does anyone know how to add a second condition to the SendEmail trigger? Or how to use AND/OR logic under the advanced builder?
- If I go to the Advanced tab, and type in the following condition, it works fine: {omActCompDate} NEQ ""
- But I also need to add a second condition: {omType} EQ "FCP"
Question: How do I combine these conditions to work together? ( using the AND operator)
Here is what the behavior adds to the page with only one condition:
upd_tblcom.registerConditionalTrigger("{omActCompDate} NEQ """"", "AFTER", "Trigger_SendEmail_Sales", 40);
Adding multiple conditions to Trigger_SendEmail?
Re: Adding multiple conditions to Trigger_SendEmail?
standard php is used in the advanced condition builder so something like this should work.
Two variables must be true (AND)
One variable must be set (OR)
Two variables must be true (AND)
Code: Select all
({omActCompDate} NEQ "") && ({omType} EQ "FCP")
Code: Select all
({omActCompDate} NEQ "") || ({omType} EQ "FCP")