Pets

Part of the IP4CMS portal. ← All module guides

What it's for β€” Pets is a registry of the animals belonging to your members. Each pet record holds a name, a type (dog, cat, etc.), and optional breed, colour, gender, and a photo. Records are linked to the member who owns them, and β€” where the Properties module is enabled β€” can also be linked to the property the pet lives at. The registry feeds both your back-office views and the member-portal/resident app, where members can see and (if permitted) maintain their own pets.

Where to find it β€” In the portal sidebar under Members β†’ Pets (route /app/members/pets). The catalog of pet types and the field-requirement settings live separately under Settings β†’ Pets settings. (Menu labels may be renamed for your deployment.)

Before you start

Key tasks

Define pet types

Pet types are the dropdown list (Dog, Cat, Bird…) that every pet must be assigned to. Manage them in Settings β†’ Pets settings, on the Pet types tab. (A maintenance list also exists at /app/members/pet-types.)

  1. Open Settings β†’ Pets settings.
  2. On the Pet types tab, click Add type.
  3. Enter the Name (required, up to 255 characters) β€” e.g. Dog.
  4. Click Save.
  5. To rename or remove a type, use Edit / Delete on its row.

Only types that exist here appear in the pet registration form. Managing types requires pets:manage:types (or admin/settings access in the settings screen).

Deleting a type warns you it "may affect pets using this type" β€” existing pets keep their stored type, but you lose it as a selectable option.

Register a pet

  1. Go to Members β†’ Pets and click Add Pet (visible only if you can create pets).
  2. Member β€” select the owning member from the dropdown (searchable, shows membership number). This field is required and is hidden when you are working in "My Pets" mode (see below), where it is filled automatically.
  3. Pet Name β€” required, up to 255 characters.
  4. Pet Type β€” required; pick from the type catalog.
  5. Breed, Colour, Gender β€” optional free-text fields (each up to 255 characters).
  6. Pet Photo β€” optional. Click to choose a JPEG, PNG, GIF, or WebP file up to 5 MB; a preview appears. Use Remove Photo to clear it.
  7. Click Add Pet. The record is saved first, then the photo is uploaded as a second step. If the photo upload fails, the pet is still saved and you'll be told to retry the image.

Field-policy-controlled fields

Your tenant can change which pet fields are required. On Settings β†’ Pets settings β†’ Field requirements, an administrator can mark fields such as Member, Property location, breed, colour, or gender as required for this tenant. These rules are enforced by the server every time a pet is created or edited β€” if a required field is blank, the save is rejected with a "… is required" message, regardless of what the form lets you type. So if a save is refused even though the form looked complete, check the field-requirement settings.

Edit or remove a pet

  1. In the Pets list, use Edit on a row (needs update permission).
  2. Change any field. The owning member cannot be changed once a pet exists β€” the member selector is locked on edit. To re-home a pet to a different member, delete it and recreate it.
  3. You can replace or remove the photo here too.
  4. Click Save.
  5. Delete (needs delete permission) asks for confirmation, then removes the pet. Deletion is a soft delete β€” the record is hidden but retained for audit history, so the pet stops appearing in lists and counts but is not erased.

Find pets

The list supports searching by name (press Enter) and filtering by Member and Pet Type, plus column sorting and paging. Columns shown: Member, Name, Type, Breed, Colour, Gender, Created.

How the data connects

Permissions & access

Access is governed by the pets licence module plus granular permissions:

CapabilityPermission(s)
See all members' petspets:read:all
See only own pets ("My Pets")pets:read:own
Create petspets:create:all (anyone) / pets:create:own (own only)
Edit petspets:update:all / pets:update:own
Delete petspets:delete:all / pets:delete:own
Manage pet types & field requirementspets:manage:types (types); admin/settings access for requirements
List pets by propertyproperties:claims:read, locations:read:all, or properties:settings:read

admin:full:access grants everything. Buttons (Add / Edit / Delete) only appear when you hold the matching permission, and the server re-checks on every call.

Member-submitted vs admin β€” Staff with the *:all permissions manage the whole registry. A signed-in member who only has the *:own permissions sees the screen in My Pets mode: the member column and member filter disappear, the header reads "My Pets", and new pets are linked to their own profile automatically. This is the same path members use in the member portal to maintain their own pets.

Tips & gotchas