Forums

Limit the frequency of form submissions

Ron 09 Oct, 2020
Hello,
I would like to limit the re-submission of a form to every 5 minutes to a registered user. I do not find it in Watchman. How can I achieve this ? In V5 this facility was available, I cannot find it in V7.
Please help
Ron 11 Oct, 2020
Hello

May I have an update on this topic.

Thanks
Ron 15 Oct, 2020
Hello

Is there no solution to my query ? Please help if possible..

Thanks
Ron 17 Oct, 2020
I think there is no solution to this?
Thanks
Max_admin 18 Oct, 2020
Hi Ronn,

Yes, this feature is not supported at the moment, may be added in a future update, but you can do it in a PHP action and use the "Events" behavior to redirect the user if the condition fails!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 19 Oct, 2020
I have no options in the events field of PHP Action ?
Max_admin 19 Oct, 2020
PHP > Advanced settings > Events
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 20 Oct, 2020
Hello Max.

I am trying this in a PHP Action.. Bet it does not seem to work. Where possibly I maybe going wrong ?
if (time() - ( isset($_SESSION['last_submit'])?$_SESSION['last_submit']:0 )< 300) 
die('<h1><center>Post limit exceeded. Please wait at least 5 minutes</center></h1>');

/* ======= update the session ======== */
$_SESSION['last_submit'] = time();

Please help.

Thanks
Max_admin 20 Oct, 2020
code needs testing, but it should be like this:

Check if session key exists, no ? set it and return 0, yes ? check the time difference and return "redirect" if it's less than 300

then enable the Events behavior, add a new event and call it "redirect" then redirect the user somewhere or display a message!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ron 20 Oct, 2020
Max. Thanks for the reply.

I think I will wait for the next V7 release.🙂
You need to login to be able to post a reply.