Link Permits to Contacts, Inspections, and Related Records
An association field links a permit record to records in another entity: the applicant and contacts, review tasks, inspections, professional licenses, or a parent permit. This page covers the associations a permit type usually needs. For the field editor itself, see Associations in the Entity Builder guides.
Prerequisites
- Both entities exist (for example Electrical Permit and your inspection entity).
- A staff role that can configure the permitting application.
Associations a permit type usually needs
| Link | Direction | Notes |
|---|---|---|
| Permit to Contacts | Many contacts per permit | Created for you as Contacts when your application has contacts. Mark one contact field as the applicant. |
| Permit to Permits Menu | One portal tile per permit | Created for you as Permits Menu. Do not remove it; the record number and portal views depend on it. |
| Permit to Review Tasks | Many tasks per permit | Usually created by automations at each status gate. See Automation Builder for permits. |
| Permit to Inspections | Many inspections per permit | Lets staff and applicants see every inspection on the permit. |
| Permit to Professional Licenses | One or many | The licensed professional responsible for the work. See Licensed professionals. |
| Parent permit to child permits | One parent, many children | For example a building permit with related trade permits. |
Steps
Add the association field
Open the permit entity, choose Configure, click Add Field on the section where the link belongs, and pick Association. In Associated Fields, choose the related entity.
Choose single or multiple
Turn on Allow linking to multiple records when a permit can have more than one (contacts, inspections, review tasks). Leave it off for a single link such as a parent permit.
Make the link two-way
Turn on Two Way Binding ("Enable two-way binding between entities") so the related record shows the permit too. GovAssist keeps both sides in sync for you.
Mark the applicant
On a contacts association, turn on Applicant ("Mark this contact field as the applicant"). Only one field per entity can be the applicant; GovAssist warns you with Applicant already set if another field already has it.
Limit which records can be picked
Under Association Filters, click the settings button to "define conditions to filter which records appear in the dropdown", for example only active licenses.
Set how it appears on forms
On the form, select the field and set Layout Type to Pills (one field shown per linked record) or Cards (several fields), and pick the Fields to show. Turn on Allow Creation Of Record to let users add a new related record from the form.
Portal options for contact and license links
These settings are on the form field, not the entity field:
| Setting | Use it when |
|---|---|
| Auto-fill with Logged-in Contact | The applicant's own contact should fill the field automatically in the citizen portal. |
| Allow User Change | The applicant may replace the auto-filled contact. |
| Auto-fill with Logged-in User | A staff user should fill the field automatically (for example the inspector on an inspection result form). |
| Enable filtering by License Professional | The picker should list only records tied to the signed-in user's licensed professional. |
Example
An Electrical Permit entity:
| Field label | Related entity | Multiple | Two Way Binding | Other settings |
|---|---|---|---|---|
| Contacts | Contacts | On | On | Applicant on |
| Licensed Professional | Professional Licenses | Off | On | Association Filters: status is active |
| Inspections | Inspections | On | On | |
| Parent Permit | Building Permit | Off | On |
Common mistakes
- Creating the reverse link by hand on the other entity as well as turning on Two Way Binding. Use one two-way field.
- Deleting the system Permits Menu or Contacts association. Record numbers, portal views, and applicant access rely on them.
- Expecting entity settings to control the form. Layout, auto-fill, and record creation are set per form field.
- Creating many child records at once and not checking the parent afterward. After a test that creates several children together, open the parent and confirm all its links are still there.