Suppose we have the following Combo Box named Status bind to one of the choice fields of Dataverse.
Items = Asset Status option set field of table Product.
Now if we want Available to be the default selected value for it, we can use the DefaultSelectedItems property of the combo box.
DefaultSelectedItems = Filter(Choices(Products[@’Asset Status’]), Value = ‘Asset Status’.Available)
Also if we want to set the value of the Villages combo box based on the value selected in the Region combo box. The region is a lookup field in the Villages table.
We can update the Items property of the Villages combo box from
Villages (Data Source)
If(IsBlank(comboRegion.Selected),Villages, Filter(Villages, Region.Region = comboRegion.Selected.Region))
Hope it helps..
One thought on “How to – Set Default value for the combo box in Canvas Apps (Dataverse)”