Hi,
I have a Button which will capture location & submit form if "Schedule Status DataCard" is set at "Completed". Otherwise it will just submit form without capturing location. Thus I have the following:
OnSelect property of Button1: If(DataCardValue11.Selected.Value="Completed",Set(jas_plannerjaslyn, BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude));SubmitForm(Form1),SubmitForm(Form1),SubmitForm(Form1)).
Data source is a Dataverse Table.
However I got an error message:
Incompatible types for comparison. These types can't be compared: OptionSetValue(Schedule Status), Text.
We can't evaluate your formula because the values being compared in the formula aren't the same type.
Location: Button1.OnSelect.
Thanks in advance for your help!
Stephen
Hi Drew, thank you for your great help!
Hi @Anonymous ,
Have you tried something like this?
DataCardValue11.Selected.Value=Choices(ScheduleStatus).Completed
or this?
Text(DataCardValue11.Selected.Value)="Completed"
mmbr1606
22
Super User 2025 Season 1
stampcoin
19
Michael E. Gernaey
15
Super User 2025 Season 1