• Resolved joshvic1

    (@joshvic1)


    Hello

    We are working on a project and we need to limit form submission per user.
    For instance, a user A visited the page where the forminator form is intergrated, he fills the form and and it was successful submitted

    We want to restrict him from submitting that same form until after 7 days, he’d be privileged to submit again. And the cycle continues.

    Can we archive that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @joshvic1 ,

    I’m afraid there isn’t any out of the box setting regarding this. The plugin at the moment only provides an option to set the number of days for which the form could be displayed. This feature can be found once you edit the form under Behaviour > LifeSpan.

    It’ll require custom coding to restrict the submission per user, you can find the following snippet helpful which restricts submission based on an email which you could modify according to your needs:
    https://gist.github.com/wpmudev-sls/a516633a168dd4d5c9bc9cdab2e4cc9d

    Kind Regards,
    Nithin

    Thread Starter joshvic1

    (@joshvic1)

    Yes, I just checked the code.
    Seems it can still solve my need.

    But i couldn’t find where to edit the number of days to restrict the submissions

    And besides I just used the codes in my function.php and it crashed my website

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @joshvic1 ,

    The above code is a start for further modifications. As my colleague said it only restricts submissions based on user email, but it needs to be changed to fit your needs.

    And besides I just used the codes in my function.php and it crashed my website

    This code is a Must Use plugin, it should be used in a separate file:

    Must Use Plugins

    kind regards,
    Kasia

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @joshvic1 ,

    We haven’t heard from you for a week now, so it looks like you were able to make the above code working for you.

    Please feel free to re-open this ticket if needed.

    kind regards,
    Kasia

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I limit form submission per user’ is closed to new replies.