Hello,
I have 15 Multiple Selection Dropdown in a hidden container , the user can choose to unhide it triggering a boolean var that changes the "visible" attribute of the container.
Every time one of this dropdow appears, the OnChange event is triggered and a (big) call to the backend is fired (so in my case 15 are fired). This is useless since the dropdowns are not changed (they were hidden) and is harmful because of the huge amount of time spent waiting for answer.
Do you have a workaround for this?
thanks!
Hi Gianluca,
Try conditional CSS.
For example, here, the Container (and its content) will remain loaded into the browser, but will be hidden from view when ShowContainer is False.
Hope this helps,Chris.
Hi,
As noticed, yes on making container visible the OnChange event is getting fired. Since at this point dropdown is not changed and selected Item list will be empty, you can add a IF condition on the On Change action, if list is empty, don't execute any logic and just end the flow. Hope that helps.
List can be empty also if the user makes it empty... in that case the logic should run.
My only idea is to check a boolean "IsFirstRun" which is positive by default and goes negative after the first run. the bad thing is that I need this check for every filter (I have 15 now, and they can grow) and because of this I was looking for other solutions..
thanks :)