⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Selecting duplicates in multiselect box



adirokr007

adirokr007
  • profile picture
  • Member

Posted 01 August 2018 - 23:30 PM

Hello, 

I have a situation where I need to select an item from available list multiple times in my selected list. I managed to change the hiding options of uiselect javascript to allow for selecting the same option multiple times and I could see the same option multiple times in my selected list (please see attached image). However, when I want to save this information, it only saves unique values and does not save duplicates. Is there a way to save duplicates (preserving the order of selection) in the database which has been setup using n-n relations? 

 

I am a newbie so if you could point me in the right direction that would be awesome. 

 

Thanks in advance.