Skip to main content
Nintex Community Menu Bar
Question

Custom Components in Brookyn not rendering with conditional rendering

  • July 10, 2024
  • 2 replies
  • 0 views
  • Translate

Forum|alt.badge.img+3

We have a Custom Component that is not being rendered in Brooklyn, we have conditional rendering to show it based on some model data.
We narrowed it down to this: When we remove the conditional rendering, the component is rendered, when we add conditional rendering that evaluates to true on page load, the component is, rendered, hidden and subsequently re-rendered based on the model data it depends on, but when the conditional rendering evaluates to false on page load, even if it subsequently evaluates to true, it never renders.

Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+1
  • 3 replies
  • July 10, 2024

I’m having the same issue. It was fine before Brooklyn.

Translate

Forum|alt.badge.img+4
  • 31 replies
  • July 10, 2024

So here’s the hack that worked for us:

  1. Add a new "Template" component, set to "Allow HTML", add this as the contents: # {display:none;}
  2. Add a custom Rendering condition to this new template that sets it to render when the first option is selected.
  3. Update the Rendering condition on your existing "problematic" component to also render on first load.
In effect what you're doing is rendering the component in two cases just that in the default case it's hidden.
Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings