Mautic Community Forums

Mautic issues to validate form

Hello people good night



I had some issues with form validations on Mautic. I use WordPress and Mautic here. When someone signs a form with all fields blank, I get this error with URL parameters:

Code:
http://[my_domain]/[my_content]/?mauticError=Erros%3A%3Cbr%20%2F%3E%3Col%3E%3Cli%3EInsira%20seu%20email%3C%2Fli%3E%3Cli%3EInsira%20seu%20telefone%3C%2Fli%3E%3Cli%3EInsira%20sua%20cidade%3C%2Fli%3E%3Cli%3E%27Profiss%C3%A3o%27%20%C3%A9%20obrigat%C3%B3rio.%3C%2Fli%3E%3Cli%3EInforme%20sua%20necessidade%3C%2Fli%3E%3C%2Fol%3E#formulario

I tried to use the manual code, but I had no results. I just need to show a message and validate blank fields, at same page, when someone try to subscribe my forms and solve this problem.

I used this plugin to mask some fields: https://github.com/luizeof/mautic-wordpress/blob/master/wpmautic.php

Someone already seen something like this?

Regards.

Thanks

Hello people good night

I had some issues with form validations on Mautic. I use WordPress and Mautic here. When someone signs a form with all fields blank, I get this error with URL parameters:

http://[my_domain]/[my_content]/?mauticError=Erros%3A%3Cbr%20%2F%3E%3Col%3E%3Cli%3EInsira%20seu%20email%3C%2Fli%3E%3Cli%3EInsira%20seu%20telefone%3C%2Fli%3E%3Cli%3EInsira%20sua%20cidade%3C%2Fli%3E%3Cli%3E%27Profiss%C3%A3o%27%20%C3%A9%20obrigat%C3%B3rio.%3C%2Fli%3E%3Cli%3EInforme%20sua%20necessidade%3C%2Fli%3E%3C%2Fol%3E#formulario

I tried to use the manual code, but I had no results. I just need to show a message and validate blank fields, at same page, when someone try to subscribe my forms and solve this problem.

I used this plugin to mask some fields: https://github.com/luizeof/mautic-wordpress/blob/master/wpmautic.php

Someone already seen something like this?

Regards.

Thanks

Solved.

Basically, the issue was related with a path error. The Mautic duplicated one folder in the path to find one JS file.

(e.g http://[myurl]/mautic/mautic/media/js/mautic-form.js - Thats the file)

I just changed the Mautic Base URL from “http://[myurl]/mautic” to “http://mautic.[myurl]/”, then, I waited for cronjobs. It worked!

Thanks.

Thanks for sharing solutions

I had this same problem. There was a fix for me. My solution was my configuration url was wrong.
Click Configuration > Site URL: Just put your domain name eg https://YourDomainName (or http if you’re http) eg https://domain.com or http://domain.com
I had mine as https://domain.com/mautic (I installed it in a sub folder). Ignore the subfolder, just put your base domain name.

Correct solution was found here
https://www.mautic.org/community/index.php/7552-v-2-8-0-404-on-mautic-form-js/p1#p22721 by MxyzptlkFishStix,
which was found https://www.mautic.org/community/index.php/7100-mautic-form-js-failed-to-load-resource/0

Good luck to you.