Hi All,
I need to hide/show values in an option set based on other fields. I am able to hide the options no problem using:
formContext.getControl("controlname").removeOption(100000002)
However, when I try use the formContext.getControl("controlname").addOption(100000002) to show the value again I get the following error when stepping through the code: Uncaught UciError: Required Parameter is null or undefined: optionSetItem.value
Based on the Microsoft Documentation don't see any parameters to add (https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/controls/addoption).
Am I missing something?