Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge
GB
Last activity: 18 Jun 2019 4:40 EDT
Select multiple values in an element using RDA Open Span
Hi,
Actually I am creating an automation in which we need to select 2 values in a multi select control in the Application. When it was inspected, I could see it being inspected with a combo box icon in RDA tool. But I don't see any method for it using which I could select more than 1 value. Please suggest.
Regards,
Neha Bisht
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/e90c12b7-5a50-45b6-9408-8644c06fabca.jpg?h=9bedb0c7&itok=I_lzpbin)
Pegasystems Inc.
US
Without seeing the specific control, I don't really have a suggestion. You may need to create a JavaScript function to perform a multi-select if you are not finding the proper methods available.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/1f77a272-b558-4261-964a-0a7d028c27c5.jpg?h=436c2321&itok=Ilx-4hBN)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2024-05/1f77a272-b558-4261-964a-0a7d028c27c5.jpg?h=436c2321&itok=Ilx-4hBN)
Pegasystems Inc.
US
Is this a Windows or Web control?
A Windows ComboBox does not support multi-select natively. A ListBox does, however. A little more information would be required to help if it is Windows.
If it is Web Thomas's suggestion should be the way to go.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/f7151e69-7bd9-4702-be03-ebb6f0beb05f.jpg?itok=GWX3Wdig)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689954000/f7151e69-7bd9-4702-be03-ebb6f0beb05f.jpg?itok=GWX3Wdig)
CollabPartnerz
IN
We have to create a javascript function to achieve this requirement
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Tech Mahindra
IN
Hi Raveendra.,
Could you please help us to achieve the multiple selection in dropdown using javascript??
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
CollabPartnerz
IN
Hi,
below link might help you.
https://collaborate.pega.com/question/rda-select-element-create-container-control-simple-example
-
Alpesh Patel
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge
GB
Hi,
I am able to select two values in a control using JavaScript. Thanks a lot Thomas and Jeff.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant
AU
Hi Neha, I have a similar issue can you please help me out with the script.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Coforge
GB
Hi Srilekha,
I did it using the below script -
var color, i, j,
values = ["Private", "Public"],
options = document.getElementById("statusCodes").options;
for ( i = 0; i < values.length; i++ )
{
for ( j = 0, color = values[i]; j < options.length; j++ )
{
options[j].selected = options[j].selected || color === options[j].text;
}
}