Body of Email field
Hello,
Is it possible to add logic within the body of an email field?
For instance I am creating an email body with fields from my view, but some I only want to show if another field is ticked
Thanks
David
7 replies
-
If PPC is a yes/no field and you want check if it is set to yes, then you can do something like:
if PPC then {'Google Date Studio Link'} end
For a yes/no field just by putting the name of the field tells Ninox to validate only when true or yes or 1.
If PPC is a choice field then you will need to know the number of the choice you want selected. So if the selection is number 2 on the choice list then:
if PPC = 2 then {'Google Date Studio Link'} end
If you want to use the text that is in your choice field:
if text(PPC) = "apple" then {'Google Date Studio Link'} end
-
Hi Friend,
Thanks for the above answer. Is this possible within the body of the email field? I assume it would just literally print out the words "if ppc then"
-
When I tested it, it knew code from text.
What is your experience?
-
I have the following in the body of my email
if {'Is PPC to be included in report'} then {'Google Data Studio Link'} end
And the output in the actual email is
if Yes then https://datastudio.google.com/reporting/XXX end
The field ''Is PPC to be included in report' is a Yes/No toggle field, I've tried the IF without the parentheses and just quotes etc but still no luck
-
Looking back at my code Ninox changed it so you can try:
{if 'Is PPC to be included in report' then ‘Google Data Studio Link' end}
-
Thank you both, got it working! The logic makes sense now
Content aside
- Status Answered
- 2 yrs agoLast active
- 7Replies
- 112Views
-
3
Following