# Set up a User portal and service categories

Source: https://govform.com/resources/documentation/article/20-13-library-user-portal
Topic: Library Settings

**In Govform Builder**

Your library → User portal

The User portal gives signed-in people one place to find included services, resume saved or returned work and see their own submissions. It is included in every plan. Library administrators configure it from **Builder → User portal**.

## Choose services and Collection programmes

**In Govform Builder**

Your library → User portal → Services

Select **Choose services** or **Manage services and cards**. Include signed-in ordinary services and Collection programmes from the library. Patterns, anonymous services and individual managed Collection forms are not eligible; include the programme to bring its current and future Collections into the portal.

Edit each card's title, description and image, then set the homepage order. Provide alternative text for an informative image or mark it as decorative. Unavailable selections are hidden from respondents, and every service keeps its own access, review and resume rules.

## Organise the homepage

**In Govform Builder**

Your library → User portal → Homepage

Under **Homepage → Show services as**, choose:

| Layout | What people see |
| --- | --- |
| Service cards | Individual service and Collection programme cards. This is the default. |
| Category cards | Category cards that open their included services. Uncategorised services remain directly available. A service card can also be set to show on the homepage. |
| Grouped services | Included services grouped under category headings. |

Changing the layout keeps the categories and card settings you have already configured.

## Create and maintain categories

**In Govform Builder**

Your library → User portal → Categories → Add category

1.  Select **Manage categories → Add category**.
2.  Give the category a clear title, an optional description and, if useful, an image.
3.  Select members from the services and programmes already included in the portal.
4.  Save the category, then adjust its service order and the homepage order.

A service or programme may belong to several categories without creating extra applications or duplicating overall activity totals. Search matches category names as well as services. Category pages let people view the related things to do and activity, with category filters retained through pagination.

Renaming a category preserves its ID and URL. Removing it keeps its services and applications; services without another category appear directly on the homepage. Empty categories stay in settings but are hidden from the homepage until a member is available.

## Brand, preview and publish

Set the portal title and introduction; the logo, colours and sign-in come from the library. You can use an existing shared service domain, with an optional redirect from its root. Portal settings do not provision a new domain.

Use **Preview portal** to inspect the saved configuration in User view. Check desktop and mobile layouts, category membership, image alternatives, search, saved work and returned work. Deploy the portal separately to each configured environment and check that its deployed settings match Builder. Portal deployment does not deploy service definitions, authentication or branding.

Included signed-in services provide a return link to the portal. Each person sees only their own activity and assigned work. Status held in another system needs an integration.

For revision-safe automated configuration, including categories, see [Read, update and deploy User portal settings](<https://govform.com/resources/documentation/article/33-12-api-user-portal>). Try the fictional council example on [Templates & demos](<https://govform.com/templates#user-portals>).

## Let people delete their drafts

People can delete a draft they started and have never submitted. On **My activity**, a **Delete draft** link appears beside the draft, after both the standard and customised table columns; the draft's own record page keeps its **Delete draft** button. The confirmation explains that deleting is permanent and removes the draft, its answers and files uploaded to it, and that anything held outside the service, such as emails received or copies already downloaded or sent, remains. Submitted, returned and reopened responses cannot be deleted this way, nor can drafts with a required payment. After deletion My activity and the service's draft count are updated. A draft that is submitted or changed at the same moment is kept, and the person is asked to try again.

## Portal settings reference

| Property | Configuration |
| --- | --- |
| `title`, `introduction`, `introductionMode` | Portal heading and introduction; interpretation is markdown or html. |
| `serviceIds`, `collectionProgrammeIds` | Included ordinary services/programmes from this library. Individual managed Collection forms are not selected directly. |
| `displayMode` | flat (service cards), categories (category cards) or grouped. |
| `categoryCardSize` | large, standard or compact; omitted defaults to standard on the category-card homepage. |
| `categories` | Stable category ID, title, member keys and optional card size for its service page. Omitted category-page card size defaults to compact. One service/programme may belong to several categories. |
| `cards`, `cardOrder` | Card title, description, image/crop, image display, decorative/alt-text choice, homepage visibility and ordering. |
| `domain`, `redirectRoot` | Portal domain and root routing. Saving is separate from domain readiness and environment deployment. |

Portal boolean values such as imageDecorative, showOnHomepage and redirectRoot are JSON booleans. They are not the string flags used by many Form settings. For revision checks, collection replacement and deployment, see the [User portal API reference](<https://govform.com/resources/documentation/article/33-12-api-user-portal>).

## Customise content, labels and statuses

**In Govform Builder**

Your library → User portal → Content and labels

Open **User portal → Content and labels** to change what signed-in users see. Leave anything blank to keep the standard text. Saved changes show in User view straight away; deploy the portal to each environment as usual. Only library administrators can save changes.

| Setting | What it changes |
| --- | --- |
| Navigation | The Services, Things to do and My activity labels and page headings. The Services page heading stays “Your services” unless you set a label; category pages keep their category title. |
| Section text | The Things to do and My activity introductions, and the text shown when there are no services, nothing to do or no matching activity. |
| Card template | The description area of each service and category card. The card title link, picture and “needs attention” links stay. |
| Things to do card template | The heading, text and due date on each card. The reference, status and action button stay. |
| Table columns | Up to six My activity columns, each with a heading and a template for its cells. Link one cell to `item.detailUrl` so users can open the record. Adding Things to do columns shows Things to do as a table instead of cards. |
| Overview | An optional page of up to four tables, each with an optional total. See Add an Overview page below. |
| Data sources | Fixed filters, the filters users can change and date order for My activity, and a fixed service for Things to do. |
| Status labels | The text and colour of each status. Status rules and filters do not change. |

Templates use Markdown or HTML with Liquid (table cells always use HTML), as in service content, and are made safe before they are shown. Liquid is checked when you save. The homepage introduction can use Liquid too. Templates can use `portal.title`, `portal.libraryName`, `user.name` and `section`; Things to do cards and table columns can use `item.name`, `item.reference`, `item.statusLabel`, `item.statusTag`, `item.updatedAt`, `item.dueAt` and `item.detailUrl`; card templates can use `card.title`, `card.description`, `card.attentionCount` and `card.draftCount`. My activity columns can display eligible answers selected for that data source. Navigation, search, filters, action buttons and page links always work in the standard way.

To style the portal, add CSS in [Style settings](<https://govform.com/resources/documentation/article/20-02-library-style-settings>) under Custom CSS overrides and start each rule with `.gf-portal-page`, for example `.gf-portal-page .gf-portal-status--returned`. Classes such as `.gf-portal-page--tasks`, `.gf-portal-slot--card` and `.gf-portal-activity__col--1` target individual pages, templates and table columns. Apply style settings to each environment separately from deploying the portal.

## Choose portal data sources

**In Govform Builder**

Your library → User portal → Content and labels → My activity

Library administrators can configure My activity in Content and labels or through MCP. Read `get_user_portal` with `includeDataSources=true`. Use `fieldSource` with an included service or Collection programme key to discover eligible question IDs. For a Collection, select a returned `fieldFormId`. Pass `nextFieldOffset` as `fieldOffset` for more questions or managed forms. Service choices have a separate `offset`. API keys also need form read or write permission to discover fields.

Set `settings.dataSources` with the existing revision-checked portal update. My activity supports fixed and user-selectable filters. Clear or replace a fixed service and any selected fields for that service before removing it from the portal. Numeric answer filters accept values that can be represented exactly as Decimal128. Select simple questions in `activity.answerFields` by source, formId and fieldId. Selected questions and a fixed service must use the same sign-in method as the portal. A fixed answer value must be a single line, and questions that accept several lines can be shown but not filtered. Questions that share a field ID share one user filter. An activity column can display `{{ item.answers["fieldId"] | escape }}`. Ordinary activity lists owned responses. Collection activity includes unstarted assignments for current members. Started responses also require a matching assignment, response and journey. A fixed answer filter applies within its bound form. Only configured eligible answers from the current form snapshot can appear in a cell or match an answer filter. Saving affects User view. Deploy to each environment separately.

## Add an Overview page

**In Govform Builder**

Your library → User portal → Content and labels → Overview

Overview brings tables from My activity and Things to do together, so signed-in users can see their open cases and what they need to do in one place. It is optional: it appears in the navigation, after Services, once you add a table in **User portal → Content and labels → Overview**. Services stays the first page users see.

For each table choose a data source and a heading. The table shows the first 10 rows, using that data source’s columns and fixed filters, with a link to the full page. Add a total label to show how many rows the table has; the total always matches the table.

On a My activity table you can also choose which statuses to include and tick **Open cases only**. This leaves out responses whose case your team has closed in Response Hub. Accepting a response does not close its case. Use Things to do for requests the user needs to act on: it has one item per response, with a link to open it. Invitations stay on the Things to do page.

Users only ever see their own responses and their organisation’s Collection assignments. Save, check the page in User view, then deploy the portal to each environment.
