May 5th, 2011, 12:55 PM
Ah, gotcha!
Since you're using the API function to display the submission, you can actually just customize what appears on your thankyou page directly through Form Tools.
Note that the second parameter being passed to the ft_api_show_submission() function is the $view_id. Views lets you pick and choose whatever fields you want to see, just by going to Edit Form -> Views -> Edit View -> Fields tab.
So what you can do is create a new View for your form that contains whatever fields you want to appear on this page. After that's created, go to the Edit Form -> Views page and make a note of the View ID. Lastly, go back to that code and change the value of the $view_id.
That should be it! Let me know if you run into problems.
- Ben
Since you're using the API function to display the submission, you can actually just customize what appears on your thankyou page directly through Form Tools.
Note that the second parameter being passed to the ft_api_show_submission() function is the $view_id. Views lets you pick and choose whatever fields you want to see, just by going to Edit Form -> Views -> Edit View -> Fields tab.
So what you can do is create a new View for your form that contains whatever fields you want to appear on this page. After that's created, go to the Edit Form -> Views page and make a note of the View ID. Lastly, go back to that code and change the value of the $view_id.
That should be it! Let me know if you run into problems.

- Ben