Hello!
I'm trying to create a combobox to which users can add items on the fly. Since PowerApps combo boxes don't have that ability by default, my workaround is using the following formula in the 'Update' property in order to get the combobox to return the search text value if there is no match in the dropdown items:
If(IsBlank(DataCardValue10.Selected),DataCardValue10.SearchText,DataCardValue10.Selected)
Where 'DataCardValue10' is the name of the combo box.
However, I'm getting the error "The function "If" has some invalid arguments".
Does anyone know what may be going on? I've been messing around with it and when I use the following piece of code it seems to get rid of the error, so I'm guessing DataCardValu10.SearchText is the wrong datatype, but I'm not sure how to fix it.
If(IsBlank(DataCardValue10.Selected),DataCardValue10.Selected,DataCardValue10.Selected)