getOption (Client API reference)
Returns an option object with the value matching the argument (label or enumeration value) passed to the method.
Column types supported
Choice, Choices
Syntax
formContext.getAttribute(arg).getOption(value)
Parameters
String (label of the option) or Number (enumeration value of the option).
Return Value
Type: Option object.
Description: The logical name of the column.
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