I'm building a form, where the user has to choose an item from a drop down and then add it's price manually to a text field. If the price typed in is incorrect, then an error message should come up.
I am using a collection from an excel table as the backend for validation, I added the below to the error text label in question, but it's not working and I am not sure why.
Coalesce(
Parent.Error,
If(
!IsBlank(DataCardValue31.Value) &&
!IsMatch(DataCardValue31.Value, Dropdown4.Selected.'PO Price')
"Incorrect price"
)
)
DataCardValue31: the text label where the price needs to be typed in
Dropdown4: is the field where the price automatically gets filled in, once the user chooses the item from another drop down. This one is not visible, I just wanted to add it for the validation
'PO Price': the name of the column, that contains the correct price in the backend
Could someone please help me? Thank you!