When we develop a PCF OptionSet Control, we get always 3 options available: "Option A / Option B / Option C".
Is there a possibility to define another values?
I would need some more flexibility: more options, long text for options, different content, specify color for the options, aso.
I would implement my own default values, but since the 3 values are always returned, I don't know when to overwrite them with my own values.
Hi @DianaBirkelbach ,
Do you want to set the option set's value by your own?
You can acheive the same by using type ‘enum’ as following -
A sample property l
<property name="EnableFiltering" display-name-key="CC_Allow_Filtering" description-key="CC_Allow_Filtering_Desc" usage="input" of-type="Enum" required="false" hidden="true">
<value name="Yes" display-name-key="CC_Enable_Filtering" description-key="CC_Enable_Filtering_Desc">yes</value>
<value name="No" display-name-key="CC_Disable_Filtering" description-key="CC_Disable_Filtering_Desc" default="true">no</value>
Here's a similar issue for your reference:
Hi @v-yutliu-msft ,
thank you for the fast answer. I'm not sure if we talk about the same problem. I'm looking for a way to set the available optionset values for test inside the harness, not to configure an Enum-parameter for the form customization.
I've attached a screenshot to show what I mean.
I'm not sure how to bind the Enum parameter with my OptionSet bound parameter?
Check out new user group experience and if you are a leader please create your group
Check out how to claim yours today!
Test your skills now with the Cloud Skill Challenge.
We are excited to announce that Demo Extravaganza for 2021 has started!
On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks