I'm running into the following situation and could really use some help.
I have an edit form with some fields from a Sharepoint List.
One of them is called Load Terminal 2 which is a choice column.
The user can either select an available choice or enter a new item.
I have a save button which has the following DisplayMode:
If(frmEditLoad.Unsaved,DisplayMode.Edit,DisplayMode.Disabled) and when it's in Disabledmode the color is the same as the background and as such not visible.
The update value of the Load Terminal 2 Card is as follows:
If(!IsEmpty(DataCardValue24.Selected),
DataCardValue24.Selected,
{ Value: DataCardValue24.SearchText})
I can perfectly save this in the case I have made a choice from the existing items in the choice field or if I leave it empty.
However, when I type in something manually, the save button does not appear. It seems like it does not register this as a save.
If I change the update value of the Load Terminal 2 Card as follows:
If(!IsBlank(DataCardValue24.Selected),
DataCardValue24.Selected,
{Value: DataCardValue24.SearchText})
Then I can perfectly save in case I have made a choice from the existing items in the choice field or if I type in something manually, however when I keep it empty and click on save, in Sharepoint it removes the input but the save button remains active, so the form stays in UnsavedMode, despite the save being executed.
I almost feel like I have to combine the IsBlank and IsEmpty to properly solve this but I can't get my head around it. Any help for the update value of the card would be much appreciated!