---
title: Choice
framework: Installer JS
role: pseudoSymbol
path: installer_js/choice
---

# Choice

A single installation choice.

## Overview

Overview Choice objects are properties of the choices global variable and represent the installation choices defined in a distribution package. The name of each property of the choices array corresponds to the choice-id attribute of each of the distribution’s installation choices (see Distribution Definition XML Schema Reference for more information). Therefore, a specific choice is accessed this way: choices.<choice-id> <choice-id> represents the identifier of the desired choice in the installation definition. For example, to access the selected property of a choice with 'choice_a' as its identifier, you would use the following expression: choices.['choice_a'].selected

## Topics

### Accessing a Choice’s State

- [selected](installer_js/choice/1812159-selected.md)
- [enabled](installer_js/choice/1812168-enabled.md)
- [visible](installer_js/choice/1812175-visible.md)

### Accessing a Choice’s Metadata

- [title](installer_js/choice/1812183-title.md)
- [description](installer_js/choice/1812191-description.md)

### Working with Packages

- [packages](installer_js/choice/1812201-packages.md)
- [packageUpgradeAction](installer_js/choice/1812213-packageupgradeaction.md)
