Delen via


Microsoft.Common.CheckBox UI-element

Met het besturingselement Selectievakje kunnen gebruikers een optie in- of uitschakelen. Het besturingselement wordt geretourneerd true wanneer het besturingselement is ingeschakeld of false wanneer dit niet is ingeschakeld.

Ui-voorbeeld

Schermopname van het element Ui van Microsoft.Common.CheckBox met de status Uitgeschakeld.

Schema

{
  "name": "legalAccept",
  "type": "Microsoft.Common.CheckBox",
  "label": "I agree to the terms and conditions.",
  "constraints": {
    "required": true,
    "validationMessage": "Please acknowledge the legal conditions."
  }
}

Voorbeelduitvoer

true

Opmerkingen

Wanneer u deze optie instelt required true, moet de gebruiker het selectievakje inschakelen. Als de gebruiker het selectievakje niet inschakelt, wordt het validatiebericht weergegeven.

Volgende stappen