Hi @MayankGupta94 ,
I'm assuming that the items for the two libraries are two collections, and on the right arrow button, it removes the selected items from collection 1 and adds them to collection 2, and conversely, on the left arrow button, it removes the selected items from collection 2 and adds them to collection 1.
So, on right arrow button OnSelect:
UpdateContext({varItem1: Gallery1.Selected});
Remove(Collection1, Gallery1.Selected);
Collect(Collection2, varItem)
on left arrow button OnSelect:
UpdateContext({varItem2: Gallery2.Selected});
Remove(Collection2, Gallery2.Selected);
Collect(Collection1, varItem2)
If you want to select multiple items from one side, it's better to use the List Control. It allows to select multiple but using Galleries you will need a collection3 to temporarily save the selected items.
OnSelect of Gallery1:
Collect(col3, Gallery1.Selected)
OnSelect of right arrow:
RemoveIf(Collection1, Value in col3.Value);
Collect(Collection2, col3);
Clear(col3)
and vice versa.
Best regards,