Solved

How to populate a picklist with a Team of Users?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CRM disconnects every second record 4 44
CRM 2011 Opportunity Bug 18 141
Dynamics GP 2015 keeps crashing randomly 6 51
Dropdown List values based on a IF filter 19 75
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…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now