|
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::pi_full_name"] .value = name1;
document.form1.submit();
}
Can anyone see what I am doing wrong?
|
|
|
I provided a complete code sample in this thread: http://www.codetoad.com/forum/15_22701.asp
Just copy the code into Notepad, then save as SomeFileName.html, then run it in your browser.
You have an element named "profiles::pi_full_name"? That seems odd. Or is that some notation I've not seen before? (I learn something new at least once a week!)
|
|
|
|
|
Thank you, I will take a look at it.
the "profiles::pi_full_name" is the field name from the FileMaker database I have including the relationship name of "profiles".
|
|
|
allyson212, don't forget to follow up here in the forum with your solution. Without feedback, future forum readers are left wondering if the "expert" answer was accurate.
Thanks for using codetoad.com forums! :)
|
|
|
|
|