A template marked with “Do not run template on each row” is not rendering merged fields.
Steps to reproduce:
- Create a new detail page for account
- Add a template to the page
- Mark the template “Do not run template on each row”
- Preview page choosing an account
Actual Result
Template area contains non-merged values but not any fields that were merged (e.g. {{Name}})
Expected Result
Template should contain merged fields
Notes:
- The sample page is constrained to a single record in Account model based on url parameter id. However, if you remove the Max Record # restriction (or just increase it) and eliminate the condition for id, the template still does not render properly.
- If you disable the “Do Not run template on each row” property, the output of the template is correct.
Sample XML
<skuidpage unsavedchangeswarning="yes" showsidebar="true" showheader="true" tabtooverride="Account"> <models>
<model id="Account" limit="1" query="true" createrowifnonefound="false" sobject="Account" doclone="" type="">
<fields>
<field id="Name"/>
<field id="CreatedDate"/>
</fields>
<conditions>
<condition type="param" value="id" field="Id" operator="=" enclosevalueinquotes="true" novaluebehavior=""/>
</conditions>
<actions/>
</model>
</models>
<components>
<template multiple="true" model="Account" allowhtml="true">
<contents>Account Name: {{Name}}</contents>
</template>
<basicfieldeditor showsavecancel="false" showheader="true" model="Account" mode="read" buttonposition="" layout="">
<columns>
<column width="100%">
<sections>
<section title="Basics">
<fields>
<field id="Name"/>
</fields>
</section>
</sections>
</column>
</columns>
</basicfieldeditor>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
</skuidpage>