Solved

How to populate a picklist with a Team of Users?

Posted on 2008-10-08
2
493 Views
Last Modified: 2008-10-13
Hi Folks

I need to know how to populate a picklist on a form with a 'Team' of 'Users' that I have set up. Specifically I'm looking for JavaScript code to go into the OnLoad event of the form.

Thanks.
Shane
0
Comment
Question by:abaines
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
rweil earned 125 total points
ID: 22669168
Where you want the pick list to go place "<div id=teamlist > </dev>

in the OnLoad event build the html to display the picklist. See below for basic outline. (I have not compiled/tested this code)

Then use innerHTML to insert new list

picklist = "<select name='xyz'><option value='noOne'>Select team member</option>";
 
loop over menbers
  picklist = picklist + "<option value='" + newname + "' >" + newnamw + "</option>";
 
finish with
picklist = picklist + </select>;
document.getElementById("teamlist").innerHTML = picklist;

Open in new window

0
 

Author Comment

by:abaines
ID: 22702458
Thanks rweil.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part I
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question