I have a screen where i have 30 sliders that are used to enter various ratings. what i am trying to do is have my submit button grey unless one of the sliders changes. I've set a boolean variable called VarChanges with a default value of false. with the OnChange field for my slider i have UpdateContext({VarChanges: true}). For my button, in the onSelect box i have UpdateContext({VarChanges: false}) & SubmitForm(Form1_1) .
i have a label that shows me the value of VarChanges and when it updates correctly to true when i change the slider. However, when i click my button, the label first changes to false and then back to true. If i click a second time without making any VarChanges becomes false.
Any idea why this variable is getting reset to true? is there a better way than this to control the color of a button when changes have occured but are not yet submitted?