Download

Get Loom

Submit

Submitting forms

Buttons default to the "submit" type:

<l:form action="Mortgages" event="send">
		
	<!-- ...form fields come here... -->
	<l:button />

</l:form>

The form target action and event are specified a priori to generate the attributes needed to validate input on the browser, and that is usually OK since most forms only support one action. For cases with several possible actions, the "event" attribute should be used:

<l:form action="Mortgages" event="send">
		
	<!-- ...form fields come here... -->
	<l:button value="send"/>
	<l:button value="save" event="save"/>

</l:form>

Note that in this case the validations applied on the browser will correspond to the "send" button.