Pass variable to form field