Skip Navigation

[Resolved] How to restrict access to some fields on CRED form

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by JimS9550 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1573633

Tell us what you are trying to do?

I have a cpt that I have created a form for the owner of the post to be able to edit their post. I have a couple of cpt fields on the form that I only want the administrator or editor to be allowed to see and edit. I've looked at both conditional groups in fields and in the form builder but neither provides the ability to limit the display by a role. How can I get this to work?

#1573655

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jim,

Thank you for getting in touch.

In order to do this you will need to use our Access plugin because it provides you with the ability to restrict content based on the user's role.

Once you have done this you will need to turn on the expert mode for your form.

Finally using the shortcode below you can add the custom field code within this shortcode to Hide those fields for all users except editors and administrators.

[toolset_access role="Administrator,Editor" operator="allow"]

Cred form fields go here
[/toolset_access]

Please let me know if this helps.
Thanks,
Shane

#1573687

My issue is resolved now. Thank you!