5 Replies Latest reply on Jan 21, 2019 2:07 AM by AlasdairRobertson

    Multiple Selections in a Picklist

    blwallace Specialist

      Using Ivanti 2017.3


      I'm wondering if there is a way to create a request offering that has a drop-down picklist where the user can select multiple items in that picklist.  I don't see a direct way, so I'm playing around with having a drop-down followed by a checkbox.  Clicking the checkbox presents a read-only text field that would hold the drop-down selections.

      The Selected Employees field (SelectedMany) would hold the multiple selections from the Select Employee drop-down.  I was hoping to create sort-of a loop like variable where SelectedMany = SelectedMany + SelectEmp.selected.Employee.DisplayName and as the use selects another employee, the names would in the Selected Employees field.  However, this is not working. 


      Is there a way to do this?  I don't necessarily need an additional field if I could create a multi-select drop-down - but again, I don't see how to do this directly.  So maybe an indirect way?

        • 1. Re: Multiple Selections in a Picklist
          Kayla.Culpepper SupportEmployee



          Thanks for posting to the Ivanti Community.


          Sorry that it seems no one has the answer to be able to assist you on this yet.  Did you manage to get any further information on this? Please share anything you deem useful and the community may be able to offer some help.


          If not then please do consider the other ways to engage with us to get assistance:




          Kayla Culpepper

          Customer Service Coordinator


          • 2. Re: Multiple Selections in a Picklist
            AlasdairRobertson ITSMMVPGroup

            It can be done like this, everytime you select a new person from the drop down it adds to the selected list



            Set your employee function as shown below, you need the find statement to prevent duplicate entries being added.


            if find(Employee,  EmployeeList) == -1
              then trim(EmployeeList + "\r\n" + Employee)
              else EmployeeList


            it produces results like this:




            Shout if you get stuck.

            2 of 2 people found this helpful
            • 3. Re: Multiple Selections in a Picklist
              vee Specialist

              This is really clever! Nice suggestion

              • 4. Re: Multiple Selections in a Picklist
                Julian Wigman ITSMMVPGroup

                Nice Alasdair.


                I presume this target field is read-only? Do you have a solution for removing items in this scenario as well either because they accidentally selected or you later want to remove an entry?



                • 5. Re: Multiple Selections in a Picklist
                  AlasdairRobertson ITSMMVPGroup

                  Not that I have tested JulianWigman the fields can be read only or not doesn't really matter, if you delete a row it should just remove the name and then you can add in another entry.


                  It will only matter editing manually if you require the data for another operation e.g. a search and link loop routine.  You could put a check box near it which will change the field from read only to editable and then its read only most of the time and you check the box to edit when you make a mistake?


                  The main problem is its not like add/subtract buttons.  Humm thinking about that you could possibly do something with hidden boolean fields so the selected value gets put in a text box and the user verify by clicking a Boolean field, that then adds it to to the main list of confirmed names.  Starts getting overly complex at this point for customers to maintain without providing in depth documentation of the thinking behind it.