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.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for