Passing Smart Search Filter parameters through query string

Guido Paolano asked on March 12, 2018 17:41

Is it possible to use a Smart Search Filter with query string parameters and not doing a postback or going through the Smart Search Dialog?

Recent Answers


Brenden Kehren answered on March 12, 2018 18:40

Yes.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on March 12, 2018 19:20 (last edited on December 10, 2019 02:31)

You need to use macro, for example: +_content:({%QueryString["searchtext"]|(identity)GlobalAdministrator%})

1 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 13, 2018 00:34

Technically speaking the smart search dialog uses a redirect not a postback. So it redirects to the same page and adds the URL params to the page.

1 votesVote for this answer Mark as a Correct answer

Guido Paolano answered on March 13, 2018 19:56

Thank You!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.