Skip Navigation

[Resolved] How do I make a member fill out the form only once and ….

This support ticket is created 4 years, 5 months ago. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by Waqar 4 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#1372299

I have a user information form
hidden link

I just want to fill it once for each member
How do I prevent a member from filling out a new form?

And how do I make a link button heading to his own custom post?
hidden link

#1372787

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Ayoub,

Thank you for contacting us and I'd be happy to assist.

To limit the number of posts submitted by a single member/user to only 1, you have a couple of options:

1. You can attach a custom function with "cred_form_validate" hook ( ref: https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate ) which checks for the number of posts where the author is the current user and if any such post is found, it shows the error, when the form is submitted.

You'll find a good code example in this reply:
https://toolset.com/forums/topic/cred-before-save-data-allow-only-one-submition-of-the-form/#post-922696

OR

2. You can create a custom function that get's the list of all the posts where the current user is the author and if any such post exists, it returns the count.

That function can then be used in the conditional display block which shows the form, only if count is less than 1.
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-custom-functions-in-conditions/

The following reply has a good example function for this:
https://toolset.com/forums/topic/limit-submissions-per-session-per-user-per-time-period/#post-424560

I hope this helps and for more personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

And to make the post title heading in the page, link to the actual post, you can select the post URL option, from the dynamic source:
Screenshot: hidden link

regards,
Waqar

#1372945

In fact, I do not find dealing with code, so I bought toolset plugins and did not even understand something
Although making a special topic for each member is very important, these do not exist
any tutorial about that please?

#1372957

Is there any plugins that helps it to be compatible with toolset like "buddypress" and "Ultimate Member"?

thank you.

#1373569

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Ayoub,

Thanks for writing back.

Our Toolset plugins are designed in a way that many features are available out-of-the-box, which won't require any custom code. But for any additional requirements, custom code is needed to extend those available features.

You're welcome to use our dedicated form to submit new feature requests:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

For now, if you could share the link to a page with a form, whose submissions you'd like to limit, I can share more detailed steps, for how to include custom code.
( the page that you shared earlier is showing "not found" message )

Note: The third-party plugins like "Buddypress" and "Ultimate Member" can be used for their own features, however, they can't be used to limit Toolset Form's submission.

regards,
Waqar

#1373635

Thank you for your reply
I just want to limet count writing posts to members in sections
Example:
All members can only write one post in the section "Profile"
user:member: limit of 100 posts in a section name "Ads"
user member pro: Writing posts has unlimited in a section name "Ads"

#1373965

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Ayoub,

I've checked your website and here are my findings:

> All members can only write one post in the section "Profile"

- From "Profile" section, I understand you mean the user profile edit page at hidden link

If that is correct, then each user on your website can only have one profile and cannot add more profiles like posts.

Also, the form on the page is not a Toolset form and is being added through a third-party plugin ( probably "Profile Builder Pro" ). For most accurate and up-to-date information related to any third-party plugin, I'll recommend consulting its official support and documentation.

> user:member: limit of 100 posts in a section name "Ads"
> user member pro: Writing posts has unlimited in a section name "Ads"

- On your website, I couldn't find any section or post type for "Ads". In your post forms section (WP Admin -> Toolset -> Post Forms ) there is just one form named "company_forms", but it doesn't seem to be used on any page.

This is what I'll recommend. You can first create any Toolset form with its respective page, where users can add new posts. Once it is ready, you can share its link in this ticket, so that I can guide you the specific steps on how to set a limit on how many posts a single user can submit using that form.

Here is a detailed guide on using Toolset forms:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.