Hello -
After a record is saved on a page (no redirect, stay on page), changes that should trigger conditional rendering to show/hide elements are not resulting in expected behavior.
Steps to Reproduce:
- Create Contact new page
- Add a tabset with 2 tabs
- Put default field editor in to tab #1
- Set tab #2 to conditionally render when first name is not blank
- Add template field to tab #2 with “hello {{{FirstName}}}”
- Remove values for “After Save Redirect URL” and “After Cancel Redirect URL” from “Save” button
- Preview page
- input text in to first name field
Actual Result = Expected Result
Tab #2 appears
- remove text from first name field
Actual Result = Expected Result
Tab #2 disappears
- Input text in to Last Name
- Save Record
- input text in to first name field
Actual Result
Tab #2 does not appear
Expected Result
Tab #2 appears
Sample Page XML
<skuidpage unsavedchangeswarning="yes" showsidebar="true" showheader="true" tabtooverride="Contact"> <models>
<model id="Contact" limit="1" query="false" createrowifnonefound="true" sobject="Contact">
<fields>
<field id="FirstName"/>
<field id="LastName"/>
</fields>
<conditions/>
<actions/>
</model>
</models>
<components>
<pagetitle model="Contact">
<maintitle>
<template>New {{Model.label}}</template>
</maintitle>
<subtitle>
<template>{{Model.labelPlural}}</template>
</subtitle>
<actions>
<action type="savecancel" afterCancel="" afterSave="" rollbackonanyerror="true" window="self"/>
</actions>
</pagetitle>
<tabset rememberlastusertab="true" defertabrendering="true" renderas="">
<tabs>
<tab name="New Tab">
<components>
<basicfieldeditor showsavecancel="false" showheader="true" model="Contact" mode="edit" buttonposition="" layout="">
<columns>
<column width="100%">
<sections>
<section title="Basics">
<fields>
<field id="FirstName"/> <field id="LastName"/>
</fields>
</section>
</sections>
</column>
</columns>
</basicfieldeditor>
</components>
</tab>
<tab name="New Tab" loadlazypanels="true">
<components>
<template multiple="false" model="Contact">
<contents>Hello {{{FirstName}}}</contents>
</template>
</components>
<renderconditions logictype="and">
<rendercondition type="blank" operator="!=" fieldmodel="Contact" sourcetype="fieldvalue" nosourcerowbehavior="skipandnorender" field="FirstName" value="null" enclosevalueinquotes="false"/>
</renderconditions>
</tab>
</tabs>
</tabset>
</components>
<resources>
<labels/>
<css/>
<javascript/>
</resources>
</skuidpage>
Thanks!