Hey everyone, I am sure this is a simple one, but I am curious if someone can help me debug why I am getting an undefined value when passing a value from the child window to the parent window.
On my child window, I have the following code
Code:
<form name="selectrfc" action="">
<tr> <td align="center"> <input name="rfcid" type="radio" value="2"> </tr>
<tr> <td align="center"> <input name="rfcid" type="radio" value="1"> </tr>
<tr><td><input type=button value=' close window ' onClick='javascript:window.opener.document.view_this_pm_form.rfc.value=document.selectrfc.rfcid.valu e;window.close();'></td></tr>
</form>
On my parent window, i have a text field called rfc. When I click the submit button on my child window, the text box on the parent window gets updated to "undefined." What I want to pass is the value of the radio that is selected. Any thoughts?
On my child window, I have the following code
Code:
<form name="selectrfc" action="">
<tr> <td align="center"> <input name="rfcid" type="radio" value="2"> </tr>
<tr> <td align="center"> <input name="rfcid" type="radio" value="1"> </tr>
<tr><td><input type=button value=' close window ' onClick='javascript:window.opener.document.view_this_pm_form.rfc.value=document.selectrfc.rfcid.valu e;window.close();'></td></tr>
</form>
On my parent window, i have a text field called rfc. When I click the submit button on my child window, the text box on the parent window gets updated to "undefined." What I want to pass is the value of the radio that is selected. Any thoughts?