Skip to content

Checkbox: selection versus submitted value

Reference · Advanced · App Connect

Represent an independent checked or unchecked choice.

Represent an independent checked or unchecked choice.

  • An App Connect page; a named form when the values will be submitted.

Use a checkbox for an independent choice. Use Checkbox Group when several options should produce an array of selected values.

ID identifies the component. Name is the submitted field key. Static Value is the payload when selected; it is not the checked flag. Bind choice.checked to inspect selection. The value may remain ‘yes’ while checked is false. Read Only is not a way to lock a checkbox/radio; use Disabled when appropriate and account for omission from submission.

Select with Check true selects the control; false clears it. The underlying method can optionally trigger Changed/Checked/Unchecked events with its second argument, but the inspector’s Select action exposes only Check. Do not rely on Select firing a user event. Set Value changes the payload instead of selecting it. A bound Checked value can later restore selection.

Form-control data is directly under its component name, for example titleInput.value. It is not titleInput.data.value.

Control or value Meaning and use
Set ValueChanges the current control value. A later change to its bound Value can replace it and also change the form-reset default. Set Value emits Updated when the value changes; it does not simulate a user Changed event.
DisablePass true to disable and false to enable. Disabled controls are omitted from normal form submission. Read Only, where the input type supports it, prevents editing while leaving the value eligible for submission.
FocusMoves keyboard focus to the control. Give the field a visible label and a useful place in the form’s focus order.
ValidateInvokes the App Connect validation helper. Load the validation extension for this action; client validation does not replace the endpoint’s validation.
value / disabled / focusedCurrent value and UI state. Text-based controls expose strings, including most number-input reads. Convert intentionally before arithmetic.
invalid / validationMessageClient validation state/message. Render a useful field error when invalid, and handle server field errors on the form too.
Changed / UpdatedChanged accompanies user input/change handling when the value changes. Updated also accompanies programmatic value updates. Do not make an Updated handler unconditionally write a different value back into the same field.

Create a checkbox with ID newsletter, Name newsletter and Static Value yes. Read newsletter.checked for the page boolean. A FormData submit includes newsletter=yes only when checked. If the server needs an explicit false, normalize a missing field there or choose a deliberate JSON contract.

User changes update checked and emit Changed plus Checked or Unchecked. Radio changes synchronize other radios with the same form/name. A programmatic change and a form reset do not have identical event semantics; attach server writes to a deliberate submit action rather than every selection event.

Use the related workflow to connect these controls to data and a verified submit result.

You can configure the control, use its actual value shape and verify the example without confusing page state with a submitted or saved value.