Struggling to find examples of how use data from salesforce as the "conditional Content here" which is taken from the XML examples
Only display content if a check box field is marked True:
<# <Conditional Test="//Opportunity/HasOverdueTask[text() = 'True']" /> #>CONDITIONAL CONTENT HERE<# <EndConditional /> #>
I can get the conditional test to work and display eg, output would display CONDITIONAL CONTENT HERE if using the above code.
I would like the conditional content to be data from a field within salesforce.
i have tried the following but all output the same error: TemplateErrorExists:Conditional and matching EndConditional tags must be in the same paragraph as conditional content OR in their own paragraphs above and below conditional content.
<# <Conditional Test="//Opportunity/Alternative_EULA__c [text() = 'True']" />
#>/Opportunity/Account.Alternative_EULA__c <# <EndConditional /> #>
<# <Conditional Test="//Opportunity/Alternative_EULA__c [text() = 'True']" />
#>"/Opportunity/Account.Alternative_EULA__c"<# <EndConditional /> #>
<# <Conditional Test="//Opportunity/Alternative_EULA__c text() = 'True']" />
#><Content Select="/Opportunity/Account.Alternative_EULA__c"/> <# <EndConditional /> #>
<# <Conditional Test="//Opportunity/Alternative_EULA__c ctext() = 'True']" />
#><# <Content Select="/Opportunity/Account.Alternative_EULA__c"/> #> <# <EndConditional /> #>
Any help or direction to resources that give example of similar logic in action would be welcomed. I am trying to maintain a single template, rather than having the conditional logic to choose between 2 templates.