Disabling contact forms for certain user roles

We a question regarding the contact hierarchy:

  • Is it possible to deactivate the “New VHW” button for a certain user role (e.g., for all VHW users)? If yes, how does this work?

As far as we can see, there is the option to disable the entire create form in the base settings (e.g., “contact_types”), but not the option to only enable certain users to create new contacts.

Hi @cht-user

I believe you can achieve this by adding a context.permissions property to your contact add forms:

You would add a permission that only specific roles have, and the add contact should only appear for those roles.

1 Like

Related post about restricting editing access: Make it so contacts cannot be edited by certain users

Hi @diana

Thank you, this worked perfectly.