Conditionally Render Page Include

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I have a skuid page wherein i also use a page include. On the hit of a button, there is a javascript snippet that runs. The requirement is that if the boolean set in the snippet is set to true, then only the page include should render. Hot do i acvieve this
Photo of Rahul Sharma

Rahul Sharma

  • 212 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I believe you could put the page inckude inside of a wrapper and conditionally render the wrapper.
Photo of Dave

Dave

  • 5,538 Points 5k badge 2x thumb
Yes what Ray says or I usually use a responsive grid and make rendering condition on grid.

Both ways should work
Photo of Rahul Sharma

Rahul Sharma

  • 212 Points 100 badge 2x thumb
Thanks guys for the answers...they did help