[Solved] Display a Pardot Custom Field on Thank You (Code) page of Form

JFH Asks: Display a Pardot Custom Field on Thank You (Code) page of Form
I have a Pardot form where the person enters an Account# (field is populated already in Pardot). They hit submit, and I’d like the Thank You text in Pardot to display another field of their’s based on their Account#. It seems like you can do it with a little JavaScript but haven’t found an example close to my use case yet.

I thought I could just reference the field, but that doesn’t work.

Thank you for submitting, your Gold ID is: %%gold_ID_#%%.

This works if I use a field in the form, but this is not in the form.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.