Want to change the default value of a switch button

Good afternoon all!    I am new to mendix and have a question considering switch buttons. I have a button in a snippet which is reused multiple times for different views (but the same action). For one of the views (pages) I want the default value of the button set to activated.   How can I accomplisch this without touching the others?
1 answers

Hi Michelle


Normally a switch button is linked to an attribute of one of your entities. In order to have it be set to a different value, you simply need to change the attribute value of the switch for the page you want it to be different. 

E.g. The boolean 'Switched' is true by default, but when we go to page X, we change it to false in a microflow.

I hope this answers your question :)