But why do you want it in the same container as the main part of the form, if you’ll be hiding the form?

Either put it in the same container, but obviously don’t hide it, or put it below it (that’s how you do it).