How to pass conditionally hidden fields to thank you and email