Hi @Pynchr ,
If you're using a SharePoint list for your data, the way I've done this in the past is by adding a column to my SharePoint list to track the number of times an inspection has been submitted for each location.
Say you call this column SubmissionCount. Then in the app, you can get the data from your list and display it in the gallery and use conditional formatting to change the color of each item based on the value of the "SubmissionCount" column.
In the Fill property of the gallery item, you can do something like this:
If(
ThisItem.SubmissionCount = 1, // Change color to yellow if submitted once
Color.Yellow,
If(
ThisItem.SubmissionCount >= 2, // Change color to green if submitted twice or more
Color.Green,
Color.Default // Default color for other cases
)
)
You'll also need to make sure the "SubmissionCount" column in your list is updated each time an inspection is submitted (via Patch or Update function when form is submitted).
------------------------------------------------------------------------------------------------------------------------------
If I answered your question, please accept my post as a solution and if you liked my response, please give it a thumbs up.
Thanks!