Form Builder

Form Builder

1. Form Builder

Formerly “Form API”. The current implementation uses NMS Prime’s FormBuilder with Spatie HTML elements.

1.1. Purpose

The form builder supplies consistent labels, inputs, selects, validation styling, help content, and Bootstrap-compatible layout for Base MVC screens.

1.2. Implementation

  • app/extensions/html/FormBuilder.php

  • app/Providers/HtmlServiceProvider.php or current service-provider binding

  • BaseViewController translation helpers

1.3. Contributor guidance

  • Define fields through Form Fields

  • Use translated labels and help text

  • Use related models’ html_list() helpers for select options

  • Do not treat form rendering as validation or authorization

  • Prefer Livewire for new complex reactive forms