Hey Suzanne,
Sorry for the inconvenience. I’ve never seen that error with Ninja Forms before, but it seems like a cross-site scripting error. I’ll have to do some searching to see what the cause is. Ninja Forms uses a bit of ajax upon submission, even if you turn off the “Submit by Ajax” feature. I’ll get back to you as soon as I find something!
Hello, i’m having a problem with the submissions as well. When you click ‘submit’ nothing happens. I’ve tried turning off the ‘Submit by Ajax’ but it doesn’t make a difference. Here’s a link to the form:
http://lenoxreign.com/clients/THS/contact/
Hey east,
I’ve looked at that page and I see a ton of JS errors going on. Could you try disabling all your other plugins and see if the error persists?
Will do, just currious – how do you see the JS errors?
Thanks Kevin, it was some other script I have running. I removed them and it worked just fine. Thanks for the quick reply!
Hey just to shed some light on the problem I was having:
It didn’t like where I put my call to jquery. I put the link to the jquery script above where the ninja form scripts were called and it’s working great now. Thanks again for your help.
Hey east, no problem. Glad that worked. If you use Chrome, just right click on the page and select “Inspect Element”, then go to the last tab that says “Console”. The errors will be listed there. If you use FireFox, you can download a plugin called FireBug which will let you do it.
Thanks, i use Firebug…just never used that feature.
Thread Starter
Heliosz
(@suzanne-pen)
Hi Kevin, thanks for looking into it. If it helps, this is the form: http://www.endurancekwb.nl/index.php/inschrijfformulier-endurance#
By the way, is it possible to get the entry fields in line, like this: http://wordpress.org/support/register.php
Thanks!
Thread Starter
Heliosz
(@suzanne-pen)
Found the cause: I have two domain names for the same website. The site is hosted on one name, but the code for the form uses the other. So I could try to change the url in the code or maybe change home in the settings? Or would that mess with my other plugins?
Suzanne, you can make the form look however you want with css.
You can add your own custom classes to each of your fields, here’s an example of a form I’ve made with Ninja Forms Lite and made it look much different than it would ‘out of the box’
http://lenoxreign.com/clients/THS/contact/
Thread Starter
Heliosz
(@suzanne-pen)
Thanks eastbank. I’m pretty new at this, so I’m not sure what to do with css. Is there a guide or something?
I solved the XMLHttpRequest issue, but it turned out not to be the cause of the original problem.
The problem was solved by checking ‘Send a copy of the form to this address?’. Now everything works (success message is shown and email is send), but there’s an error message in front of the success message:
Warning: mail(): SMTP server response: 503 5.5.2 Need Rcpt command. in D:\www\mysite.nl\www\wp-content\plugins\ninja-forms\includes\processing_functions.php on line 451
I checked the line and it seems fine.
Ah, i see.
This site, w3schools is great Free learning site. You can learn pretty much anything about web development there. Here’s a link to the CSS section:
http://w3schools.com/css/default.asp
The mail() error is caused when you have an email field that is not specifically set up as an email field and then the form is submitted but no actual email address is set.
Make sure the “is this an email” box is checked for your email field. That will solve the 503 error.
Thread Starter
Heliosz
(@suzanne-pen)
Thanks for the quick reply!
The field is checked, but the error persists.
It works though; when I test it, I receive e-mail. The error just doesn’t look very nice in front of the success message.