Follow these steps to set the default value for a SharePoint Choice column in Microsoft PowerApps.
1. Find the datacard for your choice field. In this example Work Item Type_DataCard1.
2. Select the field. In this example I renamed my field to dcWorkItemType
3. Add the following code to the DefaultSelectedItems property
If(
IsBlank(ThisItem.gbt62WorkItemType),
LookUp(Choices('Forms GBT62'.gbt62WorkItemType),Value="Bug"),Parent.Default
)
- gbt62WorkItemType is the internal name of my SharePoint field column.
- Forms GBT62 is the name of my SharePoint list.
- Value="Bug" is the term I want to set as default - from my options within the SharePoint choice column. In this example I want the default value for Work Item Type to be "Bug"
- If(IsBlank) ensures that the value is only set on new forms - i.e. when column is blank.
- Parent.Default will show the next time the form is opened rather than our default value.