# Form input requirement is kicking user back to our homepage instead of alerting them that input is needed

**URL:** https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088
**Category:** Product Support
**Created:** [May 13, 2022, 3:44pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088 "2022-05-13T15:44:50Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 3:44pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/1 "2022-05-13T15:44:50Z")

</div>

**Your software**  
My Mautic version is: 4.2.2  
My PHP version is: 7.4+  
My Database type and version is: MySQL 5+

**Your problem**  
My problem is: "Form requirement error are kicking user back to home page with URL parameter at the end of our home url.

`?mauticError=Errors%3A<br%20%2F><ol><li>This%20cannot%20be%20left%20blank.<%2Fli><li>This%20cannot%20be%20left%20blank.<%2Fli><%2Fol>#btg_subscr`

These errors are showing in the log: There nothing in log

Steps I have tried to fix the problem: I am not sure what step to take to fix this issue. This is why I am here posting about this issue.

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 3:47pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/2 "2022-05-13T15:47:30Z")

</div>

I don’t think anyone is going to actually read the URL to see why they were kick back to homepage when they did not fill in all the required input boxes and also it is annoying of having to go back and fill in all the input boxes again because the information is not saved.

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 4:25pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/3 "2022-05-13T16:25:46Z")

</div>

Here a page with just only a form on it … Click without inputting any email address

[https://www.agwm.org/btg/test-three/](https://www.agwm.org/btg/test-three/)

What is exactly it suppose to do? pop up an error box ?

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 5:37pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/4 "2022-05-13T17:37:07Z")

</div>

This is a brand new Mautic install on a different server. Still same thing … I starting to think it something within Mautic

Here a form to try out Leave email box empty and just click submit

The error message will appear inside URL parameter but it just direct you back to main domain URL …

[http://test.deafcoder.com/](http://test.deafcoder.com/)

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 7:15pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/5 "2022-05-13T19:15:43Z")

</div>

I did some more testing and found this in browser console log … look like a JS error …

`VM29:1 GET https://deafcoder.com/media/js/mautic-form.js?v32249c82 net::ERR_ABORTED 404 (Not Found)`

The file “mautic-form.js” does not exist on both of the servers.

Does it get created during composer install or when something is set up within mautic?

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [May 13, 2022, 7:29pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/6 "2022-05-13T19:29:47Z")

</div>

I grabbed the :mautic-form.js: file from git and install it … That what fixes it …

Now the question is.

Why didn’t composer install this file on a fresh new install for me on two different servers?

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [October 13, 2022, 11:50am UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/7 "2022-10-13T11:50:22Z")

</div>

Hey @techbill

I am experiencing the same issue here.  
We running 4.4.1.  
I checked in /media/js and I see that Mautic-form.js is actually there.

Any thoughts on why this is happening ?

I am not seeing anything in Mautic system logs nor error logs from server.

---

<div class="post-metadata">

### Author: ![javapete](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/javapete/32/7439_2.png) [@javapete](https://forum.mautic.org/u/javapete)
#### Post date: [December 9, 2022, 8:13pm UTC](https://forum.mautic.org/t/form-input-requirement-is-kicking-user-back-to-our-homepage-instead-of-alerting-them-that-input-is-needed/24088/8 "2022-12-09T20:13:38Z")

</div>

Thanks @techbill

that worked for me. Problem solved.
