selectedOptionIdReplacements property

Map<String, String>? selectedOptionIdReplacements
getter/setter pair

A map of option IDs to their replacements, used to automatically reassign orphaned Dropdown chips when an option is deleted.

The keys are the IDs of the options being deleted, and the values are the IDs of their replacement options. If an option being deleted is selected in one or more Dropdown chips in the document, a replacement entry for that option must be provided in this map, and the replacement option ID must exist in the updated DropdownDefinition. If a replacement is required but not provided, a 400 bad request error is returned. Options being deleted that are not selected in any Dropdown chips do not require a replacement. For example, if option A is being replaced by option B, the map should be {"A": "B"}.

Implementation

core.Map<core.String, core.String>? selectedOptionIdReplacements;