Skip Navigation

[Resolved] Limit categories shown in FrontEnd Postform

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.

This topic contains 2 replies, has 2 voices.

Last updated by thomasB-2 1 year, 5 months ago.

Assigned support staff: 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

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

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.