Retrieve users als dropdownmenu

dustdog 23 May, 2008
Hi, is it possible to make a form where one field is generated out of the registered users (or a group) list and rendered as a dropdownmenu? The thing is: I have a dental technician who wants to let the group of associated dentists fill in an orderform where they can select one their patients...

Thanks for any feedback :-)
GreyHead 23 May, 2008
Hi dustdog,

Yes, you can do that. You need a little bit of PHP in the form html to look up the user list, then a for each loop to run through it creating options for a select box. There was a fairly recent posting on a lits of US states that did the second part.

Bob
dustdog 23 May, 2008
OK Bob,

I'll search for that post. Thanks for the direction, I'll see if can produce such a line of code :-) (or maybe someone else has that line available for me..?)

Guy
This topic is locked and no more replies can be posted.