Hello,
first of all congrats on fantastic plugin. It's very useful.
I've set up a form, it is located here: http://prevoznik.registracija-vozila.rs/test/. When you load the form you will see a set of fields. If you choose Rent-a-car from the dropdown next 4 fields will hide and 3 new will show up. But:
1. If you fill everything and miss recaptcha on reload the page is not displaying these 3 fields. The default 4 are showing up again, which is wrong. If you click on Rent-a-car again the 3 fields will show up properly.
2. Besides this even though i added load recaptcha in On fail box the recaptcha box is not showing up
3. Besides these recaptcha problems i have a question regarding the email template. How to make the email send only value of the fields that are displayed on form? Right now it sends values of all fields in the form regardless if the are visible or not.
I hope that you will find some time and help me solve this soon.
Thanks in advance,
Veljko Simovic
Hi Veljko,
I can answer 2 and 3
2. You need an Event Loop action in the On Fail box, not a Load ReCaptcha action.
3. You can use a Custom Code action to build the contents of your email template and use PHP in there to leave out any missing values.
Bob
Hi Bob,
thank you for replying.
1. How can i solve this one?
2. I've added Event Loop action which can be seen on this screen shot:
[attachment=0]chronoform_setup.png[/attachment]
If i leave out Load ReCaptcha action i can only see this code on the place where recaptcha should be:
{ReCaptcha}
3. Are there any particular code examples or parts i can use for leaving out fields for which i've hidden the parent in the form?
Regards,
Veljko
Hi Velijko,
Leave out the '27' Load ReCaptcha at the end.
I would also move the Email 14 and Display Message 15 out of the On Success and put them after the Check ReCaptcha action.
For the Email template what code do you have in the template now and what do you need to hide/show?
Bob
Hi Bob,
Ok, i've removed it, but issue 1 and 2 still remains.
If i move Email 14 and Display message 15 out of check recaptcha the form sends an email even though the recaptcha wasn't entered properly and displays thank you message. That's why i moved these two things inside success part.
Right now i have the auto template created by the plugin. At some situations i have hide parent on the element with id "od", so i would like this field not to be included in the email template if it's parent is hidden.
Regards,
Veljko
Hi Velijko,
The Event Loop in the On Fail box should stop the processing and reload the form if the ReCaptcha fails. If that is not happening then something else is wrong. I can't see what this is from here. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.
Bob
Hi Bob,
yup, i understood the Event Loop function, but when the form reloads i don't get the proper fields or recaptcha.
Anyway, here's the form backup and let me know your thoughts or if you need any further information.
Regards,
Veljko
Hi Velijko,
I see what the problem is - but I don't know the solution. There is a JavaScript error when the page reloads "Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened."
At the moment I can only suggest that you try another Captcha method.
Bob
Hi Bob,
can you explain to me how to add other Captcha mehod?
Regards,
Veljko
Hi Veljko,
As well as ReCaptcha, ChronoForms comes with Captcha, Security Question and HoneyPot Anti-spam actions - they are all used in a similar way.
Bob
Hi Bob,
ok, thank you. I will give it a try.
What about the solution for problem no. 1? This is not connected to captcha. Fields should show up with Event Load.
Regards,
Veljko Simovic
Hello Bob,
just to update you, i've tried regular captcha and it works properly.
Still, problem no. 1 persists. Event Loop is not working properly and fields are not being loaded like they should.
Can you please advise me what to do to solve this?
Thank you,
Veljko
Hi Velijko,
I suspect that it is related - for some reason some of the CSS and JavaScript files don't seem to be loading the second time. I haven't seen this before and I'm not sure what is causing it. It might be the JS error is stopping some part of the page loading correctly???
Bob
Hi Bob,
i have to say that i don't know.
I am sending the backup of the form, only this time with regular captcha. Please check out on your side and let me know if you see some error and if the fields are showing up properly or not.
Hide and show parent rules are defined in the designer part of the form.
Regards,
Veljko Simovic
Hi,
I tested the form, this is a small bug, which happens only when your form AJAX mode is enabled, so you can either disable the AJAX or wait for the next update.
You can also send me a message using the "contact us" page to get an early patch file.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
thank you for finding time to test my form.
I have turned off Ajax and tested the form. Here are the results:
1. This is how form looks like when Rent-a-car is selected and form is filled:
[attachment=0]form1.png[/attachment]
2. And this is how the same form looks like after i mistyped the captcha:
[attachment=1]form2.png[/attachment]
So, as you can see, fields "Od" and "Do" are missing after reload. I guess that form hides parents of the fields that should be hidden, but it doesn't show parent of the fields that should be visible.
Best regards,
Veljko
Update:
Dropdown called "Tip vozila" is missing too. Also the field with show parent.
This is not the case here, the form works perfectly fine when a captcha error occurs, the same fields are shown.
Do you have any js errors in your browser's console ? please try this on a different browser ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello Max,
i've checked out the firebug console in Firefox and i have these errors on page load and also on reload when recaptcha is not entered properly:
TypeError: $ is not a function
"NetworkError: 404 Not Found - http://prevoznik.registracija-vozila.rs/wp-content/plugins/chronoforms/cegcore/assets/gplugins/gvalidation/lang/sr.js"
I've tested the form in Chrome, it works the same way like in Firefox.
Regards,
Veljko
Please send me a link to the form so I can check this ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Here it is:
http://prevoznik.registracija-vozila.rs/test/
Ok, your theme loads an outdated version of jQuery, please remove these lines from your theme because they cause many errors on the page then we can test this.
remove the lines loading jquery 1.6 and jqueryui and validation.js
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello Max,
i've removed the files you mentioned, but still the form doesn't load the form fields properly after the captcha is not entered properly.
You can check on your side, now without these files that were creating problems.
Regards,
Veljko
Hi Max,
are there any news about this issue?
Thank you,
Veljko
Also when the form is reloads after a failed captcha, the page stays empty for a second, not sure why is that, do you have any plugins causing this strange behavior ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello,
@Bob - the code is removed, nothing changed regarding the form problem
@Max - i have some plugins i use, but i don't know if some of them can cause conflict with your plugin. Do you already have some particular plugins which are known as the ones that can cause the problem with Chronoform?
Regards,
Veljko
Hi Veljko,
I don't have a lot of experience with WordPress, but since the page behavior is a bit strange I thought I would note this, maybe you know the reason which "may" be causing the problem.
Anyway, I suggest that you wait for the next CF update for WP and we can then test this again, hopefully this will be before next Monday.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
if next update will be that fast then ok.
Just let me know when you publish it.
Thanks,
Veljko
Hi Veljko,
It's supposed to be ready for WP either today or tomorrow!
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
in that case just throw me a message here when you publish the update so i can check it out.
Regards,
Veljko
Hello Max,
did you maybe publish the update for Chronoform?
Regards,
Veljko
Hi Veljko,
Unfortunately I got busy with some stuff and didn't do this yet, please send me a message using the "Contact us" page to get it.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
did it. Expecting your reply.
Regards,
Veljko
Hello Max,
is there any chance to receive this soon? We really want to use ChronoForms for our next service, since we used it on our previous Joomla website.
So we put the service on hold until we receive the update from you and solution for these couple of problems we are facing.
It would be great if we could solve this quickly.
Thank you,
Veljko
Hi Veljko,
I'm planning to finish and send you the update this weekend, or maybe later today if possible.
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Ok great. Looking forward to it.
Regards,
Veljko
Hi Veljko,
Sent earlier today, did you get a chance to test it?
Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hello Max,
i've received your email, but i didn't have time to test everything yet.
I will do that as soon as i find some time and i will reply to your email.
Regards,
Veljko