Link to "User Name Pull Down"

Message board links from 2010 as taken from the Internet Wayback Machine pages.
Post Reply
User avatar
admin
Site Admin
Posts: 159
Joined: Mon Aug 26, 2013 3:47 pm

Re: Link to "User Name Pull Down"

Post by admin »

08-31-2009 5:02 AM
pti
Top 50 Contributor
Joined on 08-27-2009
Posts 6

User Name Pull Down
Reply Contact

I would like if possible to convert the User Name Pulldown to a text entry field. My reasoning is that although it makes it easy for the end user, I do not want them to see before joining who is in the pool and also if I get a lot of entries the field is a bit cumbersome (I know after the first time that it defaults to their name).

Is there an easy way to do this?



Thanks.
Filed under: customize
08-31-2009 7:26 AM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456

Re: User Name Pull Down
Reply Contact

It's pretty easy to change. This is the code in userLogin.asp:

<tr valign="middle">
<td><strong>Username:</strong></td>
<td>
<select id="username" name="username" class="<% = StyleFormField("", "username") %>">
<option value=""></option>
<% 'Create a drop-down list of user names.
dim users, i
users = GetUserList(false) %>
<% for i = 0 to UBound(users) %>
<option value="<% = users(i) %>" <% if users(i) = username then Response.Write(" selected=""selected""") end if %>><% = users(i) %></option>
<% next %>
</select>
</td>
</tr>


Replace that with :

<tr valign="middle">
<td><strong>Username:</strong></td>
<td><input type="text" id="username" name="username" value="<% = username %>" class="<% = StyleFormField("", "username") %>" /></td>
</tr>

Filed under: customize
08-31-2009 8:17 AM In reply to
pti
Top 50 Contributor
Joined on 08-27-2009
Posts 6

Re: User Name Pull Down
Reply Contact

Thank you. Worked like a charm.
08-31-2009 8:18 AM In reply to
pti
Top 50 Contributor
Joined on 08-27-2009
Posts 6

Re: User Name Pull Down
Reply Contact

Thank you.

Page 1 of 1 (4 items)
Post Reply