submit - Submit

Indicates if a request should be submitted to the server after an action.

Category

basics

Syntax

submit="true|false"

Usage

In Design mode, click All Properties and look for submit under basics.

An event handler that handles only a client event (no server event) should set this property to false.

If this property is true but a client handler for the event returns false, the request is not submitted.

Examples

This Button control of type Cancel does not save data but submits a request to the server.
<xp:button value="cancel" id="button2">
	<xp:eventHandler event="onclick" submit="true"
		refreshMode="complete" immediate="true" save="false">
	</xp:eventHandler>
</xp:button>