CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How can I prevent editing of an inline custom data set?
Pages: [1]

Author Topic: How can I prevent editing of an inline custom data set?  (Read 545 times)

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
How can I prevent editing of an inline custom data set?
August 13, 2010, 02:37:32 pm
Is there a way to prevent editing of a inline custom data set?  

Here's the situation:  (Civi 3.03 through 3.21 are all the same)

We have relationships with custom inline data sets. We have an ACL group that has View only privledges to Relationship data (through a hook). When a user in the group clicks on the view link, the relationship and custom data set fields are view only.  When a user in the group clicks on the edit link, the relationship fields are not editable, but the inline data groups are editable and the Save Relationship button is clickable.

Any ideas would be appreciated.

Thanks in advance
« Last Edit: August 13, 2010, 02:41:15 pm by pkeogan »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How can I prevent editing of an inline custom data set?
August 13, 2010, 03:18:51 pm

since u r doing most of this stuff via a hook, can you also freeze the relationship custom data form fields so they are not editable

You can probably just remove the save button via a customized template or remove the save button element in the hook

ping us on IRC if you need more details / specifics

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

pkeogan

  • I post frequently
  • ***
  • Posts: 130
  • Karma: 4
    • BackOffice Thinking
Re: How can I prevent editing of an inline custom data set?
August 13, 2010, 03:43:53 pm
We'll probably end up creating a custom Templeton, but I'd rather not. My preference would be to remove the the edit (and delete)link on the prior page so that the user doesn't experience, a form with different behavior.

Is there a way we can ID the the edit and delete links?  May be a custom template on the main relationship page.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • How can I prevent editing of an inline custom data set?

This forum was archived on 2017-11-26.