Please refer to the attached sample project. Workaround: keep the text box invisible until the form is shown.