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]</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]>:
>
>
> 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.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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