Obscure Bug with Forms

@dan So I have been banging my head against the wall for a couple of days trying to figure out why the contact form on my Coming Soon website would not work.

Looks like you cannot have a form inside a modal, just does not work. But if I move it out of the modal it works great. I would hope that this is something that can be fixed as it is handy on a one-page site to be able to put the form in a modal.

Is this a known problem?

Also, it would be nice if there was a way of HIDING a modal, currently because there are no Layout Settings in a modal this is not possible. I do have a workaround for this by putting the modal in a container and then hiding it.

That sounds like something we’ll need to fix in the Components!

CC’ing in @ben for his input…

Hmm, this sounds odd. It should work. Could I get your project, just to be sure I can replicate and fix the issue.

If I understand you correctly: you want to hide the Modal trigger across different devices? If so, you’re correct in that you can’t do that directly on the modal. You’d have to do as you have done, and place it inside a Flex/Container and hide that instead :slight_smile:

No, in my case I simply want to hide it while I was testing stuff, or when I ran into a problem. But putting it in a flex or container works fine so it is not a big issue.

@Ben The site is live at https://mair.surf/, but I can send the project as well, can I just email it to Dan?

Got it, and will share it with @ben, he’ll no doubt dig into this on Monday for you :blush:

Mahalo!

1 Like