I am trying to come up with a way to have a form call another gravity form after a form is successfully submitted (a follow-up survey). I do not want to use a multi-page form as the 2nd form is not planned to appear every time, for every form submission.
I have successfully changed the confirmation message using gform_confirmation, but I cannot use the template tag ( gravity_form(#) ) in a function that is called in the header as it will just display the at the top of the page.
Two Questions:
Is there a way to know the form submission was a success that could assign a variable or be used in an IF() in the template? Then I could just place the 2nd form like any other form in the template.
Is there a way to store the output of the function gravity_form() into the $confirmation array? I know this is a PHP question, but it is where I am going to search next on.
Thank you.