Popup Context Affects Rendering

  • 2
  • Problem
  • Updated 3 years ago
Conditional rendering in a popup only works if the model of the rendering condition is the same model as that of the model of the "context" that opened the popup. (i.e. The model of the page title of the button that opened the popup or the model of the table that popup is a row action of).
Photo of Menachem Shanowitz

Menachem Shanowitz

  • 1,074 Points 1k badge 2x thumb

Posted 3 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Menachem.  I disagree.  I can build a page with multiple models. One model provides context for a popup, and a second model is used to conditionally render material in that popup. 

Can you give us a little more detail about what you are trying to do here? 
Photo of Menachem Shanowitz

Menachem Shanowitz

  • 1,074 Points 1k badge 2x thumb
Hi Rob,

I did some further testing and realized that this issue only occurs in a very specific situation.

It appears that it occurs only when both models share the same sObject and the (model) field value of the rendering condition is changed after the popup is rendered, in which case the new (changed) value of the field has no effect on the rendering of the component.
(Edited)