Navigation überspringen

[Gelöst] How to limit how many times a signed-in user can fill a particular post form

This support ticket is created vor 10 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 reply, hat 1 Stimme.

Zuletzt aktualisiert von rosieB vor 10 months.

Assistiert von: Minesh.

Author
Artikel
#2821848

Hello there,

I hope you’re having a great day.

On my site I am building, I have a front-end form that new users will fill. Once they have a published form, I will change their user type/permission on the site.

I would like to know how to prevent a signed-in user (regardless of their permission) from being able to fill in a particular post form more than once. In case you need my website, it is versteckter Link.

Thanks so much.

#2821858

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There are multiple ways you can achive this.

You can use the thrid party plugin to restrict the number of posts created by user:
- https://wordpress.org/plugins/user-posts-limit/

Alternatively, if you want to use Toolset, you can create a view and filter the view to display posts by adding the "post author" filter equal to current loggedin user. So, you can tweak it if there is post found, you should not show anything and if there is no post found, with the no post found section, you can add the Toolset form shortcode to this section using which user can submit the entry.

More info:
- https://toolset.com/course-lesson/creating-a-view/#filter-the-list-of-posts

Please check the following related ticket that might help you:
- https://toolset.com/de/forums/topic/guide-limiting-amount-of-posts-a-user-can-create-to-1-resolved/

If you want to enable the legacy view:
- https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

#2821873

Thank you for your prompt response. I downloaded the plugin, but it only lets you create a rule for one user role and I have two that need protecting.

I found a workaround in that I have my two forms visible to one standard user role and then once their permissions change on the site, they can’t see the forms anymore. I would have liked a formal way to block any more than 1 submission but this does the trick! Thanks!