Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

Thispost function allows to dynamically add new options, re-enable disabled options, and disable existing options in custom fields with single or multiple selectable options.


Configuration

UI Expand
titleField

Select the field to be updated from the dropdown list or start typing to look up existing fields.


UI Expand
titleSource field

Select the field containing the option value that you want to add / disable. The selected field must contain a text value.

You could use temporary fields. They could be set in a prior post function (e.g. with the Update or copy field values post function) and the set value used in this post function.


UI Expand
titleMode

Select the action to be executed. The following options are available:

OptionDescription

Add new option, or skip if it already exists

The new option value will be added. If it already exists the operation will be skipped without further analysis. This is the default.

Add new option, or enable if it is disabled

The new option value will be added. If it already exists in a disabled state, it will be enabled.

Force adding new options, even if it already exists

The new option value will be added regardless of whether it already exists. Duplicate entries will likely be the result.

Force adding new option, even if it is disabled

The new option value will be added regardless of whether it already exists - either in an enabled or disabled state. Duplicate entries will likely be the result.

Disable option

The specified option value will be disabled.



UI Expand
titleAdditional options
Check Sort options alphabetically if you want to keep your option list sorted. If unchecked, the new option value will be added to the bottom of the list.


UI Expand
iconfalse
titleConditional execution

Include Page
DECADIS:_snip_condExecution_Server
DECADIS:_snip_condExecution_Server



Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
cqllabel = "use-case-workflow" and parent = currentContent()


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


Tech review

Status
colourGreen
titledone

Style guide

Status
colourYellowGreen
titleReady for reviewdone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged


Page properties
hiddentrue


Short description Add a new option, or disable an existing one in a (multi-) select list, radio button, or checkbox custom field.
Label