Any Click Event Backgroud Colour Not Changed

Kindly check my block and with video. Try to change background color when any card view click through Dynamic Components Extension but i failed. This block worked when i click first time in any button, but during the next button click, the previous click button color not change to default color.
Default Color - Green
Click Event Color- Orange
Please guide.


Your blocks are wrong you have to check bg color if is orange then change to green else set it to orange

A simple example

Result

1 Like

Thanks for your reply. I already tried this method. Kindly check your video. When you click first button, background colour change blue to brown as per i need, when you click next button, background color also change, but previously click button colour not change to blue color.

So you want to change only once at a time ?

If possible try like this, whether working or not…

In more way you can achieve this , and this is one of the method… just use logic that’s all it needs…

Thanks. Its working now.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.