Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to populate a picklist with a Team of Users?

Posted on 2008-10-08
2
Medium Priority
?
496 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 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a walkthrough guide I wrote whilst upgrading my on-premise MS Dynamics CRM 3.0 deployment to 4.0. This covers the actual installation of the product to a working level for my system, I ran into a lot of issues that the steps below fixed so h…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

926 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