Thanks Julian,<br><br>Changing the condition to what you suggested means that the else statement triggers now if the 5th radio button is selected or not, assuming I have changed it correctly. Before it was always displaying false.<br>
<br>if (icon.parentNode.parentNode.childNodes[4].getValue() == false) {<br>  feedback.setText(&quot;false&quot;);<br>} else if (icon.parentNode.parentNode.childNodes[4].getValue() == true) {<br>  feedback.setText(&quot;true&quot;);<br>
} else {<br>  feedback.setText(&quot;error&quot;);<br>}<br><br>Cheers<br>rup<br><br><div class="gmail_quote">On Mon, Jun 14, 2010 at 4:07 PM, Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Try doing getValue() == true</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> As sometimes the conditionals don’t work as you might expect if
you leave out the other item:</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> If (true){ //you might expect this to work but it sometimes
doens’t</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> }</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> If (true == true){ //do this instead</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> }</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>rupert rupert<br>
<b>Sent:</b> 14 June 2010 15:36<br>
<b>To:</b> <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
<b>Cc:</b> <a href="mailto:rupert46@gmail.com" target="_blank">rupert46@gmail.com</a><br>
<b>Subject:</b> [Xerte] Access radio button state</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal" style="margin-left: 36pt;"> </p>

<p class="MsoNormal" style="margin-left: 36pt;">Still getting to grips with the
basics of Xerte I&#39;m afraid.</p>

<div>

<p class="MsoNormal" style="margin-left: 36pt;"><br>
I want to access the state of the radio button group and update an array when
the submit button is pressed. To get the states I am using something along
these lines:<br>
<br>
if (!icon.parentNode.parentNode.childNodes[4].getValue()) {<br>
  feedback.setText(&quot;false&quot;);<br>
} else if (icon.parentNode.parentNode.childNodes[4].getValue()) {<br>
  feedback.setText(&quot;true&quot;);<br>
} else {<br>
  feedback.setText(&quot;error&quot;);<br>
}<br>
<br>
Which is not working as I expect it to, can anyone guide me towards a working
script.<br>
<br>
Many thanks<br>
Rup</p>

</div>

</div></div></div>

</div>


<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br>