Tibi Forms

Tibi uses Gravity Forms for editor-managed forms and custom React forms for service flows that submit to NLB APIs or a local WordPress REST endpoint.

Last modified: July 9, 2026

link Decision Map

Need Implementation Notes
General editor-managed form Gravity Forms block Flexible fields; entries are deleted by default after submission.
Borrower signup Skjema: Meld deg inn (tibi/form-signup) Custom React app submitting to NLB enrollment endpoints.
Loan-right confirmation Skjema: Bekreftelse på lånerett (tibi/form-confirm) Custom React app with file upload support.
Brochure ordering Brochures with child Brochure blocks Custom WordPress REST order flow and email notifications.

link Gravity Forms

Core behavior is customized in packages/wordpress/plugins/tibi-core/inc/gravityforms.php.

Editor behavior:

Developer behavior:

link Signup Form

Full block reference: Signup form block.

Editor block:

Frontend behavior:

API behavior:

Category Endpoint
Adult /v1/enrollments/adult
Youth/child /v1/enrollments/child
Student /v1/enrollments/student
Institution /v1/enrollments/institution

The base URL is https://api.nlb.no in production and https://api.dev.nlb.no outside production. Empty values are removed before submit. The offline PDF fallback comes from ACF options pdf_schema_nb and pdf_schema_nn.

link Loan-Right Confirmation

Full block reference: Loan-right confirmation block.

link Brochures

Full block reference: Brochures block.

Editor structure:

Block Purpose Key fields
tibi/brochures Parent order form Title, description, thank-you message.
tibi/brochure One orderable brochure/material item Title, description, attachment, image, Bokmal/Nynorsk/English toggles.

Frontend behavior:

Submission behavior:

link QA Checklist