Limiting number of contacts to be created under a given contact type

Hello
How can I limit number of contacts to be created under another contact
For example configure only one community Health Promoter can be created under a given area

I can’t think of any straightforward way to achieve this as of now (4.4.x).

Is the Community Health Promoter here the primary contact of the given area?

If that’s the case, there could be a way to check in the contact create form if the area already has a primary contact. If a primary contact is found, we can show warnings to the user who is trying to create another CHP. We can also make the contact create form not submittable by adding some conditions that will never pass.

1 Like