Is Conditional Rendering available on New Record pages?

  • 2
  • Question
  • Updated 4 years ago
I can't seem to figure this one out.

I have a condition for rendering a few fields contained in a Field Editor. The condition is a value of the Account Record Type ID. Is this feasible when I am creating a new record?

I guess my condition is based more on filled values, more than data contained within the model.

Also possible that I am not previewing / testing this appropriately.

Thanks for the help,

Jacob
Photo of Jacob Flatter

Jacob Flatter

  • 338 Points 250 badge 2x thumb

Posted 5 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Conditional rendering happens client side, in real time.  If the data currently in the client side copy of your model meets the condition - the element will render.  If that changes, it will not render.  I have created new pages where a value in Field A controlled the display of Field B (which was right next to it).   The page opens in edit mode and Field A is blank and Field B is not displayed.  After typing a value in Field A that meets the criteria - field B is immediately displayed.  There is a calculation gap before the field displays, but Tab out, or save, or reload is not required. 

Make sure both fields are in your model, and that the render condition statement is correct. 

Its pretty cool stuff. 
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Yes you should be able to render different areas based on the new Account's RecordTypeId field, as long as the "RecordTypeId" field is in your Model. .
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb
Do I have to create a VF page to house the Skuid page before testing this, or should I be able to test this from the Preview?
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb
I got another picklist to successfully serve as the Render Condition, just not record type ID. Maybe it wants the 18 digit code instead of the 15?
Photo of Jacob Flatter

Jacob Flatter

  • 1,512 Points 1k badge 2x thumb
Yes, that was definitely the answer!! The condition required the 18 digit value. Any chance you could support both?
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
We do need to support the reference field name as well.  We'll consider this a bug.  Thanks for your diligence in testing this out. 
Photo of Jacob Flatter

Jacob Flatter

  • 338 Points 250 badge 2x thumb
The Label , 15 Digit ID and the 18 Digit ID would be AWESOME. Thanks for the response,

Jacob
Photo of Jonathan Gillespie

Jonathan Gillespie

  • 870 Points 500 badge 2x thumb
I know this thread is a few months old, but I just ran into this same issue - having support for using the record type's name would be great! Any idea on when it might be added?