Altair Posted November 26, 2020 Report Share Posted November 26, 2020 I would like to know if it is possible to get the selected values in a List Box field with multiple selections: I have tried the solution here: But I want to know how to get those selected values to another field. Quote Link to comment Share on other sites More sharing options...
Nuke354 Posted November 26, 2020 Report Share Posted November 26, 2020 Hi Altair you can try this code to iterate though the selected list and append to each field: Here's my table: Here's the code to be added in the Footer: <SCRIPT> document.addEventListener('DataPageReady', assignMultiple); function assignMultiple() { /* You can modify the element ID as needed for x and y via Inspect Element/F12 */ let x=document.getElementById('cbParamVirtual1'); x.multiple=true; x.addEventListener("click", function() { /* You can modify the element ID as needed for y */ let y =document.getElementById('InsertRecordMulti_Email_Input'); y.value =""; var listLength = x.options.length; for(var i=0;i<listLength;i++){ if(x.options[i].selected) y.value = x.options[i].value + ";" + y.value; } }); } </SCRIPT> Sample output: Hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.