We have a custom activity type that should only be added to contacts of a specific contact subtype (ie activity targets must be of given contact subtype)
Is there an extension to enforce this?
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.Sign up to join this community
You might be interested in this:
Hide activity types in one or more ways:
- Remove the activity type from the "Actions" list on the Activity Summary.
- On a per-contact-type basis: activity type will be removed from the "New Activity" list under a contact's Activities tab, based on the contact's Type or Sub-Type.
Note, however, it only does what's stated above. It won't prevent creating activities in some other way, e.g., via api, or the New Activiy form. (But if features for more aggressive limitation are desired, I think it would be a good fit to add them.)