I have a multi-form page in my app where the .Unsaved property for the forms has been working flawlessly to change the DisplayMode of the "Save" button (the Save button uses patching instead of a SubmitForm). When I added a new form to the page that is populated with mostly drop downs, the .Unsaved property is no longer working as expected.
I've read that the .Unsaved property is unreliable, but it's been working properly up until now, so I'd like to identify which of the fields is causing the issue by coloring the text red if the field is different than what was loaded. On a regular text field, I'm doing this by changing the color property of the label on the card to:
If(ThisItem.'External Impacts Details' <> DataCardValue171.Text, Red)
This works properly. I'm trying to do it with a dropdown data card (that allows for multiple selection of items) and can't get it to work. Here's the code:
If(ThisItem.'External Impacts' <> DataCardValue170.SelectedItems, Red)
The error I'm getting is: Incompatible types for comparison. These types can't be compared: Table, Table.
I tried adding a .Value at the end of each side of the comparison but that produces the same error.
So my question is: how can I check to see if dropdown selections have changed? Is there a better way of doing this instead of relying on the .Unsaved property?
Solved! Go to Solution.
Keep up to date with current events and community announcements in the Power Apps community.
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Check out the latest Community Blog from the community!