Hi @SamGibbs,
Do you want to provide values for a Single line of text field using Combo box control within the Edit form?
Based on the formula that you provided, I think there is something wrong with the formula that you provided within the DefaultSelectedItems property of the Combo box control.
The DefaultSelectedItems property of the Combo box control is required to provided a record value, but the ThisItem.Programme formula (within the formula that you provided) would return a text value.
I have made a test on my side, please take a try with the following workaround:
Note: The Dept column is a Single line of text type column. Within Dept Data card, I remove the original TextInput control, and add a Combo box control to instead of it.
Set the Items property of the Combo box control to following formula:
Choices('20181003_case3'.Department)
Note: The '20181003_case3' represents the separated list which the Dept column pulls data from.
Set the DefaultSelectedItems property of the Combo box control to following formula:
If(
EditForm1.Mode = FormMode.New,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: "-"
},
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value:Parent.Default
}
)
On your side, you should type the following formula:
If(
StudentDetailsFrm.Mode = FormMode.New,
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: "-"
},
{ /* <-- Modify here, type a record value rather than a Text value */
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Value: ThisItem.Programme
}
)
The GIF screenshot as below:
Best regards,
Kris