I would like the data in a form field to be put in a hidden field on the same form when a user hits the submit button. I am using the following code in my functions.php to set a relationship between 2 posts which basically is what I want. How should I use this code when I want two form fields to be the same when the form is submitted?