Dialog and hidden input fields

Dialog and hidden input fields

I am experiencing a problem where the hidden input fields on my form disappear when a dialog box is opened. Even after the dialog is closed these fields are no longer on the form.

Any ideas?