<div>Thanks for your help.<br></div><div><br></div><div>It seems strange to me that a combo box / drop down menu should default to returning "" rather than the value of the first element in the list.</div><div><br>
</div><div>Since the xwd file provides the data for the construction of the wizard, I guess the behaviour of the wizard is governed by the code that processes the xwd file and presents the wizard form to the user, and that this is a part of the core Xerte code. Would it be possible to update the code so that a combo box when run could have either a default value specified in the xwd file or alternatively that it just defaulted to returning the value of the first item in the list unless one of the other items had been selected?</div>
<div><br></div><div>Kind regards</div><div><br></div><div>Johnathan</div><br><div class="gmail_quote">On 5 April 2011 15:09, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">I think default should be On Page Load (the label) rather than pageLoad (the data).</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt">From:</span></b><span lang="EN-US" style="font-size:10.0pt"> <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>Kemp Johnathan<br>
<b>Sent:</b> 05 April 2011 15:07<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> [Xerte] Xerte 2 : Combo box value is defaulting to "" why?</span></p></div><div><div class="h5"><p class="MsoNormal" style="margin-left:36.0pt">
 </p><div><p class="MsoNormal" style="margin-left:36.0pt">Hello Xerte team,</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">As far as I can tell this line is set up like many other optional property lines and I don't recall hitting this problem before</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">In an xwd file I have the optional property</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
 </p></div><div><p class="MsoNormal" style="margin-right:0cm;margin-bottom:12.0pt;margin-left:36.0pt"><narPlayback type="ComboBox" label="Narration Playback" options="On page load,On user request" data="pageLoad,userRequest" default="pageLoad" width="150" optional="true"/></p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt">When the page wizard is opened and the Narration Playback property added and the page wizard closed, the value of narPlayback changes from undefined to ""</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt">If the page wizard is re-opened the combo box displays the selected value as "On page load".</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
Clicking on the value "On page load" does not change the value from "" to "pageLoad".</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
The only way I can actually set the value of narPlayback to "pageLoad" is to select the alternative option from the combo box i.e. "On user request" and then to select "On page load"</p></div>
<div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">What am I missing here?</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">What do I need to do to ensure that when the optional property is added it receives the default value of "pageLoad"?</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
Johnathan</p></div></div></div></div><br>
<p>
This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.
</p>
<p>
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
</p>
</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>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>

<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>