We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31255
    • 118 Posts
    Hi!
    I`m new with contexts. I have a working formit driven simple feedback form in site. I made 2 new contexts, and want forms there too. What is the best solution for redirecting to right thank you -page after sending message on each context?

    Or do I have to make new formit calls to every contexts?
      Tassu, webmaster of Valokammi
      • 45534
      • 8 Posts
      To to use the same chunk/formit-call in every context, the only way I found is to use Output Filters in the &redirectTo:

      [[!FormIt?
      ...
      &hooks=`redirect`
      &redirectTo=`[[*context_key:isequalto=`web`:then=`21`]][[*context_key:isequalto=`nameOfContext2`:then=`67`]][[*context_key:isequalto=`nameOfContext3`:then=`102`]]`
      ]]
      • I would make a context setting like say formit_redirect and give the appropriate value in your context settings, then your redirecTo would look something like this:

        &redirectTo=`[[++formit_redirect]]`
          • 45534
          • 8 Posts
          Quote from: rx2 at Feb 17, 2014, 09:30 PM
          I would make a context setting like say formit_redirect and give the appropriate value in your context settings, then your redirecTo would look something like this:

          &redirectTo=`[[++formit_redirect]]`

          This is definitely the better solution!