Skip Navigation

[Resolved] Limit categories shown in FrontEnd Postform

This support ticket is created 5 years, 8 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by thomasB-2 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1227884

We try to create a frontend Content form for different Usergroups wich are only allowed to special post categories.
We work with Access and toolset forms.
The normal post Content creation and editing form was no problem.
But to show - related to Access-Groups - the categories was difficult

Is there a way to handle these problem?

#1228068

There's not an easy way to filter the category options in a Form input based on User group. The best approach here is to use different Forms for each User group, and use generic fields to display different category options to each User group. Then use the Forms API to apply the correct terms to each post.
https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data

#1229192

My issue is resolved now. Thank you!
Maybe it make sense to place these possibility for the future in the enhancement List of Forms.