Solved

How to populate a picklist with a Team of Users?

Posted on 2008-10-08
2
491 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
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!

828 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