Skip Navigation

[Resolved] Can I enable editing of a single custom field based on role?

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 7 months ago.

Assisted by: Minesh.

Author
Posts
#2777673

Tell us what you are trying to do?
I would like to allow the editing of a single field of a custom post type based on the user role.
For example the custom type includes these fields:
1. User name
2. User title
3. User question

If the role of the current user is X then they can only edit the user question field.

Is there any documentation that you are following?
I could not find any that matched this issue

Is there a similar example that we can see?
Not that I am aware of

What is the link to your site?
The site is currently not functional as it is being built.

#2777681

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

You can use Toolset Access control for the custom fields based on the role but it applies on custom field group.

So, if you have want to have different permission for all three fields, you will have to add three custom field group and add one custom field to each group and then assign role based permission to each custom field group.

Please check the following Doc:
- https://toolset.com/course-lesson/access-control-for-custom-fields/

#2777724

Thanks Minesh. Appreciated.

Next I need to maybe hire a contractor to build me a complex conditional display. Can you tell me how to go about that?

#2777806

Minesh
Supporter

Languages: English (English )

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

do you mean you would like to hire a contractor? if yes:
- You can use the following link to get in touch with any of our certified contractor:
=> https://toolset.com/contractors/

#2777811

Thanks again Minesh.