Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: CC-BY-SA-4.0

crowd-radio-button

A button that can be either checked or unchecked. When radio buttons are inside a radio group, exactly one radio button in the group can be checked at any time.

The following attributes are supported by this element.

A Boolean switch that, if present, displays the radio button as checked.

A Boolean switch that, if present, displays the button as disabled and prevents it from being checked.

A string that is used to identify the answer submitted by the worker. This value will match a key in the JSON object that specifies the answer.

Note
If you use the buttons outside of a crowd-radio-group element, but with the same name string and different value strings, the name object in the output will contain a Boolean value for each value string. To ensure that only one button in a group is selected, make them children of a crowd-radio-group element and use different name values.

A property name for the element’s boolean value. If not specified, it uses “on” as the default, e.g. { "<name>": { "<value>": <true or false> } }.

This element has the following parent and child elements. + Parent elements: crowd-radio-group + Child elements: none

Outputs an object with the following pattern: { "<name>": { "<value>": <true or false> } }. If you use the buttons outside of a crowd-radio-group element, but with the same name string and different value strings, the name object will contain a Boolean value for each value string. To ensure that only one in a group of buttons is selected, make them children of a crowd-radio-group element and use different name values.

Example Sample output of this element

[
  {
    "btn1": {
      "yes": true
    },
    "btn2": {
      "no": false
    }
  }
]

For more information, see the following. + Amazon SageMaker Ground Truth + HTML Elements Reference