321
Views
3
Comments
Changing the Default button at runtime.
Question

Hello, currently I have 1 button set as the default button, and 5 others that are not. I would like to change the color of the "last pressed" button or so to speak, or change the default button sometime, but the field Is Default is only a YES or NO field rather than a boolean variable I can use.


Is there a way to do that?

2023-04-06 11-24-23
Paulo Zacarias

Hello Vinicius

Do you just need to change the colour of the buttons or do you need to change the colour and the 'IsDefault' property?


Best Regards

2026-03-09 12-26-51
Fábio Fantato
 
MVP

Hi Vinicius,

One option to change Default button in runtime is using a Local Variable to store the Id of the desired Default Button and configure a Hidden Button with the IsDefault=True.

For this hidden button, you can implement an action to call the action WidgetClick and pass the Id you stored in you Local Variable.

To change color you just need to add the class Is_Default to your button in the css style.


Best Regards

Fabio


2023-07-03 14-28-45
Vinicius Seixas

Ok will try! Thank you all.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.