Hi,
I would like to change the color button when I click in another button.
Example. I have a red button and I would like to change the color (for green) of this button when I click in the trash icon.
Thank youuu

Hi,
I would like to change the color button when I click in another button.
Example. I have a red button and I would like to change the color (for green) of this button when I click in the trash icon.
Thank youuu
@laizcb -
One method.
1. On the OnSelect property of the Trash Icon, enter:
UpdateContext({ctx_changecolour: true})
2. On the Fill property of the Button:
If(
ctx_changecolour,
Color.Green,
Color.Red
)
I assume you also want to use to change the colour of the Button back to red based on some other business rule. To do that you can simply use:
UpdateContext({ctx_changecolour: false})