I would like to be able to add an option to an optionList, via addChoiceOptions, only in the case where the option is not already in the optionList.
Currently, addChoiceOptions is run in the preShowPageActionList, which means that if the user goes back to this page, the option is added to the optionList again, resulting in multiple occurrences of the same option.
How can I make it so that this option will only ever be in the optionList once?
asked 21 Apr, 06:23
To avoid this behavior, you could add the
answered 16 hours ago