0

We have a use case whereby certain users should not be able to edit certain rows of custom data.

CSS selectors can hide the "Edit" links for these rows, but the inline editing (i.e. clicking on the value in the table cell) is not easy to override.

We have commented out the function in civicrm/civicrm/js/common.js where the jquery.crmEditable.js file is loaded, however this introduces limitations to many of the administrator functions and is not ideal.

Is there a better way to disable the jquery.crmEditable.js functionality without modifying core code, e.g. with a custom template?

  • I may misunderstand what you are trying to achieve, but if you want to limit fields shown to various users/groups, do have a look at civicrm.org/extensions/contact-layout-editor – RebeccaTregenna Apr 28 at 15:57
  • Thanks @RebeccaTregenna but we need to disable the inline editing for certain rows of data in a group, not the whole group. – Darren Apr 29 at 9:30
1

You can setup ACL to restrict custom group edit to certain group contacts. This will stop them to update the custom field data and only view it.

| improve this answer | |
  • Hi Pradeep, thanks for the response be we need to restrict only certain rows of data rather than the whole group. I will update the title of the question to make this clear. – Darren Apr 29 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.