[Solved] Question about Any Button Click event

I have a button, btnSwitchesSave, that is NOT in the column called colSwitchesRows, but “Any Button Click” fires this button anyway. The button is
outside the “foreach item j in list” loop, but the button still fires off the web viewer.
Screenshot from 2020-09-01 15-51-36
The button, btnSwitchesSave, is physically in a row below the column colSwitchesRows. Each time the Save button is clicked, the Alert fires off, but the web viewer fires at the same time.

Any help is as always, greatly appreciated.

It sounds like a bug. If you can share a link to the project, that would be helpful. If not, I would try moving the btnSwitchesSave button into the colSwitchesRows column and then back out again. If that doesn’t fix the issue, maybe try clearing the browser cache?

Thanks, tatiang, for the suggestions, unfortunately, neither worked. I have set up a public project that demonstrates the problem.


This makes sense - the event will fire when any button is clicked. You need to add some logic to check whether or not the clicked button is in colSwitchesRows.

For example, I have 3 buttons in one col that I want grouped together and button 4 should not be part fo the “Any Button Click” logic:

Here’s a demo:

1 Like

Jane was kind enough to give me the solution:
Screenshot from 2020-09-02 09-54-11
The if does list all Buttons in colSwitchesRows contain component is the
proper way to check if the button (component) is to be used in Any Button.
Thanks @jane

Didn’t see your solution until I had seen Jane’s reply in the Chat room.

Thank-you as well.

1 Like