# Embedded form validation

**URL:** <https://forum.mautic.org/t/embedded-form-validation/3417>\
**Category:** Product Support\
**Created:** [February 9, 2016, 7:14pm UTC](https://forum.mautic.org/t/embedded-form-validation/3417 "2016-02-09T19:14:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramez\_rafla](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@ramez\_rafla](https://forum.mautic.org/u/ramez_rafla)\
**Post date:** [February 9, 2016, 7:14pm UTC](https://forum.mautic.org/t/embedded-form-validation/3417/1 "2016-02-09T19:14:24Z")

</div>

Is there a way to get the validation output of the Mautic form that is embedded on our website?  
  
  
  
We are using the JS way (i.e. including the one-liner which uses an intermediate iframe to send data to Mautic). We need to close the modal popup that contains the form and show a thank you once the form has been properly submitted. Any ideas on how to do that would be greatly appreciated.  
  
  
  
It would also allow for proper third-party integration

---

<div class="post-metadata">

**Author:** ![ramez\_rafla](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@ramez\_rafla](https://forum.mautic.org/u/ramez_rafla)\
**Post date:** [February 9, 2016, 7:14pm UTC](https://forum.mautic.org/t/embedded-form-validation/3417/2 "2016-02-09T19:14:24Z")

</div>

Is there a way to get the validation output of the Mautic form that is embedded on our website?

We are using the JS way (i.e. including the one-liner which uses an intermediate iframe to send data to Mautic). We need to close the modal popup that contains the form and show a thank you once the form has been properly submitted. Any ideas on how to do that would be greatly appreciated.

It would also allow for proper third-party integration

---

<div class="post-metadata">

**Author:** ![ramez\_rafla](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@ramez\_rafla](https://forum.mautic.org/u/ramez_rafla)\
**Post date:** [February 9, 2016, 11:38pm UTC](https://forum.mautic.org/t/embedded-form-validation/3417/3 "2016-02-09T23:38:50Z")

</div>

For those looking for the answer, Mautic has a very nice set of JS that takes care of validation and pushes onto the Mautic installation. If you want to run the validation yourself, you can temporarily disable it, run your validation and then call the submit scripts knowing they have a high chance of success.

If someone is interested, post here and we’ll share the code – some cleanup required, don’t want to do it for nothing 🙂

If @escopecz or @alanhartless have better ideas, I am listening 🙂

---

<div class="post-metadata">

**Author:** ![egyangel93](https://avatars.discourse-cdn.com/v4/letter/e/c2a13f/32.png) [@egyangel93](https://forum.mautic.org/u/egyangel93)\
**Post date:** [March 28, 2017, 12:55pm UTC](https://forum.mautic.org/t/embedded-form-validation/3417/4 "2017-03-28T12:55:13Z")

</div>

Can you please share the code?  
thanks 🙂
