dynamic-forms-ionic / Function

submitButtonFieldMapper

Mapper for submit button - configures native form submission via type="submit"

Unlike other buttons, submit buttons don't dispatch events directly. Instead, they trigger native form submission which the form component intercepts and dispatches to the EventBus.

Disabled state is resolved using the button-logic-resolver which considers:

  1. Explicit disabled: true on the field definition
  2. Field-level logic array (if present, overrides form-level defaults)
  3. Form-level options.submitButton defaults (disableWhenInvalid, disableWhileSubmitting)

Presentation

function submitButtonFieldMapper(
  fieldDef: FieldDef<Record<string, unknown>>,
): Signal<Record<string, unknown>>;

Returns

Signal<Record<string, unknown>> -

Signal containing Record of input names to values for ngComponentOutlet

Parameters

NameTypeDescription
fieldDef
FieldDef<Record<string, unknown>>

The submit button field definition