Hi growfish,
If you choose to use JQuery then it's up to you to get it into noConflict mode so that it doesn't break MooTools scrips on your site.
Sometimes the plug-ins you listed or just putting jQuery::NoConflict(); in the Load JS box of a form is enough; other times nothing seems to work except hacking or removing the offending extensions. It really does depend on how clealy they are coded.
Please post a link to the form so I can take a quick look.
Bob
Ok I added that PHP code to a Custom Code event in the On Load section and placed it above the Show HTML event.
Actually I didn't have any jQuery no conflict stuff in ChronoForms - I'm guessing you might be seeing that because of that jQuery Easy plugin I installed to do that. And it looks like it was hardcoded on the index page a few times - I removed it from the coding on the index page.
I tried to disable the jQuery Easy in the Plugin Manager that I just installed, but then my whole site goes blank - no content on any pages just the background images!!! So not sure what is up with that!
Anyways, I don't see any difference..maybe I did something wrong?
I see "<jdoc:include type="head" />" on the index.php file in my template directory just below <head>. Is that a proper place for it?
Hi growfish,
Yes that's where it belongs - but it doesn't seem to be working :-(
Bob
Hi growdish,
Thank you. Very neat idea to use a separate template for the form :-)
Bob
Hi growfish,
It seems to be disliking the 'position' input. I don't' see anything odd about the HTML for that input though. Please try changing the name to 'positionx' and see if that fixes the validation.
Bob
Unbeliveable...you've amazed me once again. I changed the field name and it worked perfectly in IE8. I must know how in the world you came to suspect that field name?!
Also, I can see that the validation I'm using now can be quickly bypassed with Javascript disabled on the users browser. I have played with the Custom Server Side Validation as well as the Auto Server Side Validation but with my weird multi-from setup, I just couldn't figure out 1.) What code to use exactly and more importantly 2.) where in my Events list would I put the event. Any thoughts?
Again, thanks so much as usual for your help!
Hi growfish,
Spam protection probably lives as the first On Submit action of page one of the form; even before the Check Captcha. It it's a spam submission they are unlikly to complete any later pages.
I'd also add some kind of check for later pages that they have already submitted page one and, if not, redirect them there. That stops anyone hitting a later page URL by chance.
Diagnosing the IE error went something like this:
[list]
Load the page in FireFox and check the validation is working
Load the page in IE9 and check that it is working
Open the IE9 Web developer tools
Switch to IE8 browser mode and check that the validation isn't working
Add &tmpl=component to the URL to check if the problem is linked to the template (it isn't)
Turn on JavaScript debugging and discover that the error is deep in MooTools on a piece of code that looks like g[i]=h[i];
Add g[i] to the Watch list and check again.
Find out that when the error occurs g[i] refers to the 'position' input.
Check the input code for any obvious errors - there are none
Scratch head
Vaguely recall that some names can cause problems because they have a special meaning = and position is a CSS term
Fail to think of any other explanation . . .
Check the vague thought by asking you to rename the input[/list]
Bob
Outstanding diagnosing steps. :mrgreen:
I will play with the spam protection/server side validation and see what I can come up with. Thanks again for your guidance.
Ok last question for you - hopefully 😀
So I've been having an intermittent issue - I was hoping it was just a glitch on a couple of user submissions but I seem to get getting 1 every few days with this problem. Most submissions work perfect - just a random one every so often is wrong.
The problem is that on my multi-page setup I'm ONLY getting the last page/step 5 of 5 of the multi-page form data saved to the database and in my email. I have validation on all the previous steps/pages so the user user had to of entered data or they couldn't have continued to that point.
Plus, this is an employment application - so no one would skip the first steps...we can't offer then the job if we don't know who that are!!!🙂 These are legitimate submissions - so I know the people entered all the fields correctly.
It's almost like it's timing out or something - and forgets the data from the previous steps. The final step/page is a lengthy one - so it could take someone up to an hour to fill it out.
When it happens I get the email with only the form names like "First Name: {first_name}" for example. The record for that field in the db is blank.
I've tried testing dozens of different ways/browsers/OS/etc and can't seem to replicate it myself...but it's happening for some reason for sure.
If there any way I can make sure the data from the previous steps is saved better? Hopefully that makes sense!
Changing the session time from 15 minutes to something longer seems to of worked perfectly for now. Thanks as always!!!!