Rendering condition parameter 'If hidden, Model field changes should be...' set to 'Cancelled' doesn't clear the value.

  • 2
  • Problem
  • Updated 8 months ago
  • Solved
We have a number of fields set to conditionally render on a 'Create' page.  On each of them, we have set the rendering condition parameter 'If hidden, Model field changes should be...' to 'Cancelled' (not 'Retain in Model').  When we eventually save (we move through a series of screens using a [next] button) until the final page where we present a [SAVE] button ), both fields that were conditionally rendered with mutually exclusive conditions now contain data.  Example.  Background - Field Employee Name is conditionally rendered when Hire Type field = Existing Employee.  Field First name (and other fields) are conditionally rendered when Hire Type field = New Hire.  Both fields' rendering condition parameter 'If hidden, Model field changes should be...' are set to 'Cancelled' (not 'Retain in Model').   User Action - The User first selects Hire Type = Existing Employee.  The employee name field is displayed.  The User selects an employee name (this is a look-up field).  Before proceeding to the next screen or saving, the User changes his mind and changes the Hire Type field to New Hire.  The employee name field is hidden, and the First Name field (and other fields) are displayed instead.  The User enters a value in the First Name field.  The User clicks on the Next button to move on to the next screen (no save yet).  At the end of the screen series, the User clicks on the [Save].  The record created has a value in the Employee Name field AND the First Name field.      
Photo of Meryl Hankins

Meryl Hankins

  • 150 Points 100 badge 2x thumb

Posted 4 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks for reporting this. We are looking into the issue. I'll let you know what we find.
Photo of Meryl Hankins

Meryl Hankins

  • 130 Points 100 badge 2x thumb
We are still having a problem with this.  Any updates? 
Photo of and thorough

and thorough

  • 736 Points 500 badge 2x thumb
I am having a similar issue where field changes are not being canceled when the field is hidden, despite render conditions set to cancel changes.  I have Skuid for Salesforce Millau (11.0.6).
Photo of and thorough

and thorough

  • 736 Points 500 badge 2x thumb
Update:  I think this is only an issue with new records.  In existing records, it seems the changes are canceled when the field is hidden (in my limited testing).  In a new record, I would expect the conditionally rendered field to go back to null/blank when hidden, but it holds the last entered value.  And I'm now on version 11.1.6.
(Edited)