The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Ninja Forms
How to block a user from multiples response or Allow only one response per user (3 posts)

  1. BijouLePou
    Posted 3 years ago #


    I'd like to know how to stop showing a form once a user have send it once. It is certainly easy to do with log in user and with the IP address for the others.

    Any help would be great!


  2. Steve Valencia
    Posted 2 years ago #

    Hi.. I just came across this post looking for something else. Hmmm.. You comment is raising some questions about "Who" you want to use your forms.
    Plugging in S2member would require a certain level of subscription to have access to certain pages...including the one with the form.

    If someone is sending in the form over and over again do they know you will shut them off?

    Or, maybe you want to just have them use a blog / post page and then you can limit the number of posts.

    If I had someone abusing the forms I would deactivate their account and send them an email.

  3. BijouLePou
    Posted 2 years ago #


    I have registered members with S2members and I want them to answer some question (survey) after they used some of our pedagogical tools. So I want their opinion only once.

    This is the answer Ninja Form team sent me.

    This isn't something that Ninja Forms does out of the box, but it would be fairly easy to implement using our WordPress action hooks and filters.
    If you are requiring your user to be logged-in at the time of submission, you could use the ninja_forms_pre_process http://wpninjas.com/ninja-forms/docs/developer-api/actions/ninja_forms_pre_process/ action and check the submission database for an existing submission using the user's id and the ninja_forms_get_subs http://wpninjas.com/ninja-forms/docs/developer-api/functions/ninja_forms_get_subs/ function.
    If the submission exists, you would simply add an error using $ninja_forms_processing http://wpninjas.com/ninja-forms/docs/developer-api/ninja_forms_processing/, and it would prevent the submission from being completed and display whatever error you wanted.

    I didn't developed it, but if any one does, I'd like to see the code. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ninja Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic