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

@dan Did anything happen on this front with regards to putting a form inside a modal?

I would sure like to do it on this site. BTW, the site has been changed to move the form to the main page as I did not want to leave it with no working form. I can switch it back if you or Ben need to see the problem.

I have been investigating this one today, and I ran in to a bug in Elements that could be related — I can’t move forward with this until that bug is fixed.

Once that’s fixed I’ll come back and continue with this Form in modal issue :slight_smile:

Awesome, Ben, looking forward to seeing the solution.

This one should be fixed in the next beta :slight_smile:

1 Like