We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40751
    • 4 Posts
    ichbinadrian Reply #1, 11 years ago
    Hello dear forummembers

    My question for today is: How to add a redirectParam from within custom hook?

    Upon successful form filling I save a new participant for a lecture in a custom hook. On the redirect page the participant can, if wanted, print a confirmation. For that I need the participant id. But since I declare redirectParams on the page before I have no clue how to get that information.

    By the way - confirmation via email is no option unfortunately…

    Hope you can help me and thanks in advance.
      • 16348
      • 64 Posts
      You can add "new" form fields in your custom hook. Use something like this to save your participant id:
      $hook->setValue('participantid',$participantid);


      On your confirmation page, use FormItRetriever to get your values including your id.