2

I have a simple text entityform setup on my drupal website. I was wondering if there was a way to prevent users from submitting a submission that has already been submitted. I am new to using Rules, but my guess would be there is a way to do so using that.

Thanks

  • What do you mean by "submission that has already been submitted"? Double clicking the submit button or submissions with the same data? – tedbow Feb 21 '15 at 19:02
  • Adding a submission with the same data. – Anthony Campagna Feb 22 '15 at 18:39
  • It depends on how complex your forms are. You can use Views and Rules to query previous submissions to see if there is a matching one. You would have to use contextual filters and VBO/Rules. But the would probably only work with simple forms not ones using textarea, multiple value fields, or file uploads. If you have a form with just selects and checkboxes I think that would be doable. – tedbow Feb 22 '15 at 22:02
1

You can try the Hide Submit moddule:

Some users accidentally click the submit button more than once while waiting for their post to be saved. In some cases this may result duplicate postings or duplicate e-commerce orders.

There are few ideas on how to solve duplicate postings but none is perfect. One of the solutions is a bit of jQuery to hide or disable the submit button after it has been clicked and replace it with an informative text such as "Processing..." .

This module wraps that jQuery code and provides some options. Of course this, too, is not a perfect solution as it requires Javascript to be enabled. For browsers with Javascript disabled this module will have no effect at all.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.