@Anonymous In the OnStart of the App, do this,
Set(gblClickCount,0)
In the OnSelect of the Button, do this.
Set(gblClickCount,gblClickCount+1)
In the Fill property of the Button, do this,
Switch(gblClickCount,
1, Green,
2, Yellow,
3, Blue,
4, Orange,
5, Purple,
6, Red
)
To record the current state of the button to the SP List, do this,
Patch(yourSPList, recordtopatch, {columname:gblClickCount})