Forms in child component that is hidden on site loading

So i am trying to setup forms with netlify. And found out that the form is not set correctly in my situation, it works when I set the form normally in the app, but when I have it hidden on site creation (using Vue) then the form is not being handled correctly. Could you help me?

I’m not sure I understood this part well, but maybe this section of the documentation covers it: https://docs.netlify.com/forms/setup/#work-with-javascript-rendered-forms