Skip to main content

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:


  1. Create Contact new page

  2. Add a tabset with 2 tabs

  3. Put default field editor in to tab #1

  4. Set tab #2 to conditionally render when first name is not blank

  5. Add template field to tab #2 with “hello {{{FirstName}}}”

  6. Remove values for “After Save Redirect URL” and “After Cancel Redirect URL” from “Save” button

  7. Preview page

  8. input text in to first name field

Actual Result = Expected Result

Tab #2 appears


  1. remove text from first name field

Actual Result = Expected Result

Tab #2 disappears


  1. Input text in to Last Name

  2. Save Record

  3. 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!

Barry - I’ve tested this in an internal version of our upcoming relase and cannot reproduce the issue.  I believe it is fixed. 


Awesome news, thanks Rob!


Reply