Hi,
I'm struggling to set the defaultselecteditems property of my combobox with a value from a choice set that I have.
I'm using Microsoft Dataverse for storing my app data.
Here's the code I have under the DefaultSelectedItems property:
If(
DataCardValue5.Selected.Value = [@'Timesheet Type'].Holiday,
["30"],
[Parent.Default]
)
Essentially this is saying if the user selects the value Holiday in a separate combobox, then set the DefaultSelectedItems of this combobox to "30", else Parent.Default
Now when I run the app and select "Holiday" the combobox appears to be set as 30:
But it's just added the text "30" to the box, it hasn't actually selected the choice value 30. If I click the dropdown arrow for the combobox you can see that the "30" is not actually selected:

Here is what the above image would look like if the 30 was actually selected:

When I submit the form the field is also left blank. How do I write the above code so that it actually selects the choice set "30" and saves it to the record?