Can't you just serialize the form to get this information into a JSON object and reference that way?