Conditionally Display Choice Options
Multiple-choice questions, such as Checkboxes or Radio Button Group, allow you to show and hide choice options conditionally. The configuration object of each choice option supports a visibleIf
property that accepts a Boolean expression. Each time this expression evaluates to true
, the choice option becomes visible. In this demo, you can provide an email address, phone number, or Telegram nickname, and the survey will prompt you to select your preferred contact option. The visibleIf
property is used to display a contact option only if a user has provided it.
As an alternative, you can use a question's choicesVisibleIf
property. This property also accepts a Boolean expression, but the expression is evaluated for each choice option individually to determine its visibility. For more information, refer to the following help topic: