How to pass an ID from a search bar into the parameters of a page include

  • 1
  • Question
  • Updated 12 months ago
  • Answered
I am looking to pass the ID of a selected user from a search bar component to the parameters of a page include. I currently have a model with a condition that is set in the search bar with an Activate and Set Model Condition action, then I query that model. Then this is the query string I am passing into my include 

?id={{$Model.SearchedIM.data.0.Id}}

Thank you for any insight! 
Photo of Ashton Roberts

Ashton Roberts

  • 310 Points 250 badge 2x thumb

Posted 12 months ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I think if you cause the include to not render then cause it to render again as the last two steps of your search component select action sequence, it will work.
Photo of Ashton Roberts

Ashton Roberts

  • 310 Points 250 badge 2x thumb
I ended up using a render condition on the page include component that renders if the SearchedIM model id is not null!