The only problem is you have to manually maintain that list.  

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of diego gentoo
Sent: Friday, May 25, 2007 7:28 AM
To: Trac Users
Subject: [Trac] Re: CC like a dropdown list?


New updates. I have this code:

[CODE]

<script language='JavaScript'>
function assegna() {

if (document.getElementById('cc').value == "") {

document.getElementById ('cc').value =
document.getElementById('sel').value;

} else {

document.getElementById('cc').value =
(document.getElementById('cc').value + " ") +
document.getElementById ('sel').value;

}

}
</script>

<button onclick=assegna()>Add to CC</button>

<select name='sel' id='sel'>
<option value='1'> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> </option>
<option value='2'>[EMAIL PROTECTED]</option>
<option value='3'>[EMAIL PROTECTED]</option> 
</select>

[/CODE]

but it doesnt work as I suppose to. When I press the button, it doesnt
add to the CC text field the value in the dropdown, but only its number
in the list (1 for first element, 2 for second and so on...), and also
Trac try to create the ticket, as I have pressed the Submit button (and
of course I didnt). 

Really strange, can you help me please?

Thanks. Diego.



2007/5/25, [EMAIL PROTECTED] < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> >: 


        I manage to have a dropdown as a custom field and a submit
button 
        editing the newticket.cs file. It is possible to make that, when
I
        choose a name from the dropdown list, it appears on the cc text
area?
        
        Thanks. Diego.
        
        
        
                
        
        -- 
        This message has been scanned for viruses and 
        dangerous content by eDiets MailScanner <http://www.ediets.com/>
, and is 
        believed to be clean. 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to