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

<test id="wml2/uabehaviour/formprocessing/forminitialisation/hiddencontrol/2" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.4.2.3" device="both">
	<assertion>When using a hidden input control, and the WML:NAME attribute
	is assigned, the initial value of the control is the value of the control
	variable.
	</assertion>
  <specnote>Create a card with a hidden input control with the WML:NAME
  attribute assigned and set in a previous card. Submit the form and 
  make sure that the value of the WML:NAME variable is the value set in   
  the previous card.
  </specnote>
  <results>
    <result>
      <name>test</name>
      <value>ric</value>
    </result>
  </results>
  <method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<wml:onevent type="enterforward">
					<wml:go href="#card2">
						<wml:setvar name="recipient" value="ric" />
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<p>Please submit the form without changing anything</p>
				<form action="#card3">
     			<fieldset>
  					<p>hidden</p>
    				<input type="hidden" wml:name="recipient" />
    			</fieldset>
  				<fieldset>
   					<input type="submit" value="submit" />
   				</fieldset>
   			</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:onevent type="enterforward">
					<wml:go href="[[resulturl]]">
						<wml:postfield name="test" value="$recipient" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
  </method>
</test>
