Post any questions you may have here
First of all i want to say Thanks to all whoever thought to build such a good form Component of Joomla. Now coming to point, I have created few forms in ChronoForms and all are working fine. However, at one point i am facing problem in it. There are few users who click Submit button multiple times after feeling data into form fields and because of it; same data is getting added multiple time. Now i don’t want duplicate entry get submitted multiple time and ruin my database with same entries.
Suppose if user click 5 times on Submit button after feeling data in form then user form data will only get submitted one time and all other four attempts will not get updated in database.
Any solution. Or Code which i can add onSubmit event.
Which version of ChronoForms are you using? You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.
There are anti-flooding settings in CFv3 on the Form General tab; and I have an Anti Flood [GH] action for CFv4 you can get here
Thank you for your reply. I am running V4 of Chrono forms. I have downloaded "Anti Flood [GH] action for CFv4". But can you let me know where should i place this file on my server. Sorry but i dont have idea about "Form General tab". Are you talking about tabs we have like as below:
I have all this tabs not the one you mentioned. Can you please help me out in integration too.
Thank in advance.
As per your instruction. I installed mentioned action and added on top of onSubmit event. But still its not working. I have updated my form with Advance Mode option. Please find attached image for your information to check if i have made any mistake in it.
You don't have any action in the On Fail event so it won't do anything. The least you need is to drag an Event Loop action in there to re-load the form. I think there is more information on the action Help Tab
Thank you for your help GreyHead.
Any guess why is getting displayed? i hope you will good solution for this too. Email field is mandatory with email format check. Is it a cause of such an error?
You have the Joomla! Email Cloaking Plug-in enabled and it is trying to cloak the sample e-mail in the ChronoForms validation message. Disable the plug-in temporarily to check this is the problem. If you need the plug-in change the plug-ins order so that Email Cloaking runs before ChronoForms.
NB These are Joomla! plug-ins that you manage from Site Admin | Extensions | Plug-in Manager
Thanks GreyHead for your help. As per your recommendation i have set off that plugin and it work perfect. Now i do not get any script error in email field.
One quick question to you. On Submit event i added Anti Flood event and in that set Event Group option. However when i try to edit setting section then i get empty event drop down. I do have multiple event set on my form.
Right now, On multiple click form get stop and throw an error. But instead of show error it should get redirect to thank you page. I tried to place redirect event after event loop but that didn't work. Please check the attached image for your information.
Hope you will solution on this too. Thanks in advance and once again thank you for your earlier help too.
The default value of the Event Loop is the one you need so having it blank isn't a big problem.
But, the bug has been fixed in the latest release so please upgrade your ChronoForms to CFv4 RC3.2
The event loop will only 'fire' the On Fail event on the second or later clicks so the action you put in there will only be used then. You can choose which action to use. If you use an Evetn Loop then the form will be re-dsiplayed; if you use a Thank You Message action then a message will be shown; if you use a Redirect User action then the user will be redirected to another page.
Thanks for your prompt reply.
Can i set custom code instead of Event loop? So it will have redirection code. I don't want to set Redirect User action as i want to submit my form data in different database too.
Hope it will work. Please let me know your suggestion on it.
Thanks in advance.
You can put any action you like in the Anti Flood action On Fail event BUT remember that it will only run when you want to block repeating submissions so it had nothing to do with your saving the data from the first submission.
Hi GreyHead, Thank you for all your assistance. i will get back to you if i face any problem. Right now upgrading form version.
As per your suggestion i have updated chrono form version with latest one. Now Events are getting displayed in drop list of Anti Flood fail option. However, it seems they are not getting listed all together as i do have almost for action on "On Submit" event button only Anti flood option get listed in drop down. I have attached image with this post for your better understanding. Top image part (1) have all action listed on my forms. Bottom part (2) have drop down of all event.
I observed that Event loop is sub action on On Submit and still is getting listed in drop down but others are not.
Could you please take a look into it. Still i am waiting to get things perfect as i want.
That looks OK to me. The drop-down lists all three of the available events (not the actions).
You want it set to the default > On Load to re-load the form.
Who is online
Users browsing this forum: Bing [Bot] and 16 guests