I am trying to get a selected value from a value list from one form and enter it into a value in a second form for submission. I have accomplished this when the first field is a text field, but when I change it to a value list I cannot seem to get the selected value.
1st form name = example
2nd form name = form1
From form "example" select name="pichoice"
function setTokens(){
var selectone = document.example.pichoice;
var name1 = selectone.options[selectone.selectedIndex].value;
document.form1.elements ["profiles:

i_full_name"] .value = name1;
document.form1.submit();
}
Can anyone see what I am doing wrong?
I tried several different things last night with no success. I attempled to display whatever value was retreived from the selected value, sometimes I got nothing and other times I goth the text "[option]"
Thanks in advance for your help!!
Allyson