Multiselect Dropdown - correct usage of variable without having to deal with infinite loop

Hello,

I have implemented an app and I use 3 multiselect dropdowns in it. At one of them, when a certain value is selected, I configured to show a popup asking the user if he/she wishes to proceed. This pop-up appears in a cascade, like an infinite loop and nothing else happens in the application besides trying to show the popup.
On the other 2, I want to be able to modify the selection after the first time I have selected something. I am not able to do that now, I think somehow I must arrange the rules differently when adding the items from the dropdown in the list, but not sure how.
In all 3 cases I am using a list to retain the selected items and I have added the lists as default selected values for the multiselect dropdowns.

I have attached some screenshots on how the list is populated.

Could you help me with any tips regarding these 2 issues?

Best regards,
Delia


Screenshot 2023-12-05 105207