SUBMIT

Submit a form. It will use the 'set' attribute on input elements, for the submitted values.

        <fetch page="newCustomer"/>
        <verify/>
        <submit/>
        
        <definePage name="newCustomer" url="newCustomer.cfm">       
		<form name="newCustomerForm" id="newCustomerForm" action="..." method="post">
			<dbInsert dbTable="Customers" id="CustomerId" />
			<input type="text"  name="Name" set="..."/>
			<input type="text"  name="address" set="..."/>
			<input type="text"  name="postcode" set=".../>
			<input type="select"  name="countryID" set="..."/>
			<input type="textarea" name="Notes" set = ".../>
		</form>	 
	</definePage>

If you want to verify that the values in a submitted form are the same when the form is retrieved. i.e. where you:

Then use the verify's valueattribute. Also note that the CustomerId variable is set via the dbInsert element, which monitors the customers database table and extracts the new row caused by the sumbit action.
        <fetch page="newCustomer"/>
        <verify/>
        <submit/>
        <fetch page="newCustomer" queryString="id=#{CustomerId}"/>
        <verify valueattribute="set"/>
                ...
        <definePage>...as above...</definePage>
Variable expansion is first performed on global vaiables and then on the javascript of the current HTML page.


1. Allowed Content

EMPTY

2. Attributes

AttributeValue(s) Default Value
form

By default the first form in the current page is used.

IDREF
#IMPLIED
htmlwarnings

If set to true, prints out warings about any sytax problems in the returned page.

true   |  false
false
stepid ID #IMPLIED
useparentfordefault CDATA #FIXED = page

3. Content Declaration

Empty

4. Parent Elements

steps   -- This element contains all the test steps.
suite   -- Define a set of steps which can be "called" from a run element.
with   -- Group together a set of steps that use the same page definition.

Top Elements || All Elements || Tree


test DTD