I am trying to execute the below JS. I have a radio button , which on click should set a property of variable RefreshMapping to child as specified in the below code. however, this doesnt seem to be working. I have set the default value of RefreshMapping to template, every time i select the radio button the value should change to child, which does not. Any help would be appreciated.
</script>
<SPAN nowrap>
<body>
<table cellpadding='0' cellspacing='0' width=''>
<tr>
<td class='{DataValueWrite}' nowrap='nowrap' width='' align="top">
<input <pega:include name="ClientValidation"/> type="radio" class="Radio" name="<pega:reference name="$this-name" />" onclick="document.getElementById('RefreshMapping').value='child';document.getElementById('RefreshMapping').click();" id="<pega:reference name="$THIS-DEFINITION(pyPropertyName)" />"
<pega:when java="<%= tools.getProperty("SelectedProduct.ChildProd").toString().equals("child") %>"> checked
</pega:when>
<pega:when java="<%= tools.getProperty("SelectedProduct.PROD_LEVEL").toString().equals("5") %>">
disabled
</pega:when>
value="true"><font class = "LabelName">Child Sub-Product/ Services</font>
</td>
</tr>
</table>
</body>
</SPAN>
P.S: This is in a tool called Pega PRPC, so ignore the syntax as it is specific to PEGA