Microsoft.Common.CheckBox UI 요소

CheckBox 컨트롤을 사용하면 사용자가 옵션을 선택하거나 선택 취소할 수 있습니다. 컨트롤이 선택되거나 false 선택되지 않은 경우 컨트롤이 반환 true 됩니다.

UI 샘플

선택 취소된 상태인 Microsoft.Common.CheckBox UI 요소의 스크린샷

스키마

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

샘플 출력

true

설명

설정 required true하면 사용자가 확인란을 선택해야 합니다. 사용자가 확인란을 선택하지 않으면 유효성 검사 메시지가 표시됩니다.

다음 단계