Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,374
    • Issues 1,374
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM Core
  • Issues
  • #55
Closed
Open
Created Apr 09, 2018 by michael@michael

Hide Adding Option Link for Locked Option Groups

You can edit option values from a few different places:

  1. civicrm/admin/options?gid=<option_group_id>
  2. civicrm/admin/options/<option_group_name>
  3. civicrm/admin/custom/group/field/option?action=browse&gid=<custom_group_id>&fid=<custom_field_id>

When "is_locked" = 1 only the first method hides the button to add new option values.

The button to add an option value should be hidden for the two places where it is highlighted in the above screenshots

From Option Group Edit Page Using Group ID

This works as expected and the button to add a new option is hidden

image

From Custom Field Edit page

image

From Option Group Edit Page Using Group Name

image

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking