How to get only selected items from a listbox in pdf

I am using Get Attribute Activity and could retrieve all items but I want only the selected items in the PDF list box (which allows for multiple selections).

Hi @varun.khanna you might get an idea from this thread Can't get selection value from list item from pdf