What is a BoundField and how to use it for custom rendering
reactA BoundField is a helper object used to render HTML content for a single field. It acts as a bridge between the Field definition, its configured Widget, the field's name in the Form, and the current state of user input and validation errors.
Instead of using the default react_components, you can use BoundField to manually construct your UI. This allows you to control exactly how labels, inputs, help text, and error messages are displayed.
Forms provide three ways to access BoundField instances:
form.boundFields(): Returns a list ofBoundFieldobjects in the order they were defined in the form.form.boundFieldsObj(): Returns an object where keys are field names and values are their correspondingBoundFieldobjects.form.boundField(fieldName): Returns theBoundFieldfor a specific named field.
// Accessing BoundFields from a form instance
const fieldsList = form.boundFields();
const fieldsMap = form.boundFieldsObj();
const singleField = form.boundField('email');