Loan-Right Confirmation Block

tibi/form-confirm renders the loan-right verification form. It collects personal details and documentation files, then submits them to the NLB verification endpoint.

Last modified: July 9, 2026

link Summary

Item Value
Block name tibi/form-confirm
Editor title Skjema: Bekreftelse på lånerett
Category text
Render root #root
Frontend app packages/wordpress/themes/tibi/src/confirm.tsx
Block source packages/wordpress/plugins/tibi-block-library/src/form-confirm/

link Editor Usage

Use this block for the loan-right confirmation page. Editors can change:

Attribute Purpose
thankYouPageMessageNb Bokmal success message.
thankYouPageMessageNn Nynorsk success message.

The form fields are not editor-configurable. The frontend app owns validation, file handling, and the API request.

link Submitted Data

The form submits:

Files are sent as attachment, attachment2, attachment3, and so on.

link API Flow

The endpoint is:

POST {apiBaseUrl}/v1/enrollments/verify

The API base is https://api.nlb.no in production and https://api.dev.nlb.no outside production. The form uses FormData because it supports file uploads.

link Asset Loading

The theme enqueues the confirmation app only when the current page contains tibi/form-confirm.

Reference:

link QA Checklist

link When To Ask A Developer

Ask a developer before changing required fields, file upload behavior, API field names, endpoint paths, or validation messages.