When overriding the label for a model field, merge syntax contained in the label is not being processed. If you override the label at the field editor field level though, it is processed.
Steps to reproduce:
- Create page from xml
- Preview page
Expected Result:
Field#1 Label - "Overridden on Model:
Field #2 Label - "Override on Field:
Actual Result:
Field #1 - “Overridden on Model: {{{Name}}}”
Field #2 - “Overridden on Model: ”
Notes - When this is addressed, would be great to see the issues at https://community.skuid.com/t/field-editor-labels-built-using-merge-syntax-do-not-upda… and https://community.skuid.com/t/obtain-label-metadata-property-of-field-in-renderer addressed as well since they are all related.
Sample Page XML
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="Account"> <models>
<model id="Account" limit="1" query="true" createrowifnonefound="false" sobject="Account" adapter="" type="">
<fields>
<field id="Name" overridemetadata="true" ogdisplaytype="STRING" displaytype="TEXT" label="Overridden on Model: {{{Name}}}"/>
<field id="CreatedDate"/>
</fields>
<conditions>
<condition type="param" enclosevalueinquotes="true" operator="=" field="Id" value="id"/>
</conditions>
<actions/>
</model>
</models>
<components>
<pagetitle model="Account" uniqueid="sk-3OaXpd-70">
<maintitle>
<template>{{Name}}</template>
</maintitle>
<subtitle>
<template>{{Model.label}}</template>
</subtitle>
<actions>
<action type="delete"/>
<action type="clone"/>
<action type="share"/>
<action type="savecancel" window="self"/>
</actions>
</pagetitle>
<basicfieldeditor showsavecancel="false" showheader="true" model="Account" mode="read" uniqueid="sk-3OaXpd-71">
<columns>
<column width="50%">
<sections>
<section title="Basics" collapsible="no">
<fields>
<field id="Name"/>
<field id="Name" valuehalign="" type="">
<label>Overridden on Field: {{{Name}}}</label>
</field>
</fields>
</section>
</sections>
</column>
<column width="50%">
<sections>
<section title="System Info">
<fields>
<field id="CreatedDate"/>
</fields>
</section>
</sections>
</column>
</columns>
</basicfieldeditor>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>