<?xml version="1.0" encoding="UTF-8"?>
<!--

  $Author: richard $

  $Revision: 1.8 $

  $Log: 1,v $
  Revision 1.8  2002/04/25 14:11:14  richard
  set as manual

  Revision 1.7  2002/04/23 10:10:10  richard
  missing the quote

  Revision 1.6  2002/04/19 15:07:19  richard
  autofailed and extra /int the wml:card

  Revision 1.5  2002/03/13 11:51:54  richard
  writing

  Revision 1.4  2002/02/28 15:55:30  richard
  rewrite tests

  Revision 1.3  2001/10/30 16:22:31  gb
  Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

  Revision 1.2  2001/10/08 21:56:15  gb
  Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/formprocessing/forminitialisation/1" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.4.2" device="both">
  <assertion>When a forms initial values have been determined, they must be 
  committed to form control variables.
  </assertion>
  <specnote>Create a card that holds a text input control with it's WML:NAME 
  set to 'lang' and it's VALUE set to 'English'. The card could also display 
  the variable to the user. Display the card, make sure the initial value of 
  the control is set, and the form control variables value is shown.
  </specnote>
  <results>
    <result ci="true">
      <name>lang</name>
      <value>english</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Submit the value</p>
  			<form action="#card2">
   				<fieldset>
      			<input wml:name="lang" value="english" />
  				</fieldset>
  				<fieldset>
      			<input type="submit" value="submit" />
  				</fieldset>
      	</form>
      	<p>Failed if card2 can not be accessed by the submission</p>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="lang" value="$(lang)" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>	
		]]>
  </method>
</test>
