getSelectedOption (Client API reference)
Returns the option object or an array of option objects selected in a choice or choices column respectively.
Column types supported
choice, choices
Syntax
formContext.getAttribute(arg).getSelectedOption()
Return Value
Type: Option object for choice; array of option objects for choices.
Description: Returns the object with text and value properties.
Related articles
getInitialValue (Client API reference)
getOption (Client API reference)
getOptions (Client API reference)
getText (Client API reference)
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för