Hide a button until all data is loaded

I have a form that has some hidden fields in that get populated from server connect query. he problem I have is it is a very short form and the form sometimes gets submitted before the data is loaded into the hidden fields.

How can I hide the button until the fields are populated?

Community Page
Last updated: