Hi,
I have a form where I want to make a field required if a dropdown contains a particular value. The values for this dropdown are taken from a choice column in the Dataverse called Calculation.
I thought I could just do:
If(DataCardValue4.Selected.Value = 100000002, true, false)
or:
If(DataCardValue4.Selected.Value = "Average by Week", true, false)
100000002 is the numeric value of the choice in the Dataverse. I get an error that says "Incompatible types for comparison: These types can't be compared: OptionSetValue(Calculation), Text
Does anyone know how to do this comparison? Bear in mind, I am not checking a value in the Dataverse table, just checking what value is currently selected in the dropdown on the data card for the form.
Thanks
Sean