# Modal in a Contact Form

**URL:** <https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108>\
**Category:** Elements\
**Created:** [June 17, 2025, 10:42pm UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108 "2025-06-17T22:42:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [June 17, 2025, 10:42pm UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/1 "2025-06-17T22:42:42Z")

</div>

I have a contact form that displays a Privacy Policy button, in the form, clicking it opens a modal showing the policy.

The interesting problem is that a click on this button causes the form to be submitted if it is populated with data. Nothing happens if there is no data in the form and the modal opens.

At first, I thought I had mistakenly placed the privacy button inside the Submit component, but that is not the case.

It looks like I cannot place a modal within a form, correct?

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [June 18, 2025, 8:17am UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/2 "2025-06-18T08:17:59Z")

</div>

sounds like a bug, could you provide the project file so I can investigate further? 🙂

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [June 18, 2025, 6:09pm UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/3 "2025-06-18T18:09:36Z")

</div>

I’ll put together a test project and post the link when it is ready.

BTW, if you want to test this on a live site, go to the following link and give it a try.

> **[HCC Contact Form](https://hanaleicanoeclub.org/contact/)**
>
> HCC Contact Form

To see the bug you have to populate the form with data and then press the Privacy Policy button.

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [June 18, 2025, 6:55pm UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/4 "2025-06-18T18:55:33Z")

</div>

> [@ben](#):
>
> sounds like a bug, could you provide the project file so I can investigate further? 🙂

@ben Here is a test project that I created to demonstrate the problem.

[elementsapp://downloadDocument/s2TsyKv6lmga](elementsapp://downloadDocument/s2TsyKv6lmga)

NOTE: The form settings have not all been populated so this will always fail, but it still demonstrates the problem. Fill out all of the fields with data and then click on the Privacy Policy button. This will attempt to submit the form while opening the modal. If there is no data in the form then the modal will simply open. I have no idea if in this case it attempts to do a submit, I assume not because no error is generated.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![handshaper](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/handshaper/32/27373_2.png) [@handshaper](https://forums.realmacsoftware.com/u/handshaper)\
**Post date:** [June 28, 2025, 8:01pm UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/5 "2025-06-28T20:01:13Z")

</div>

@ben Is there any news on this bug, as I need to make this modal work in my form somehow, so that user don’t accidently send out the form before they are ready.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [June 30, 2025, 8:21am UTC](https://forums.realmacsoftware.com/t/modal-in-a-contact-form/48108/6 "2025-06-30T08:21:12Z")

</div>

I’ve not been able to prioritise this fix, unfortunately. I can’t promise anything, but I’ll try and get a few of these types of fixes in to the next beta (or two) 🙂
