OpenWGA 7.6 - WebTML reference

WebTML tags » form

<tml:form defaultaction ="action-id">

Purpose:

Defines a WebTML action which is  invoked when the WebTML form is submitted per normal browser submit.

Description:

The given WebTML action gets executed if the form is sent over a HTML submit button e.g. via <input type="submit">. The action has access to the form data via the TMLScript Object  TMLForm.

This functionality is also able to assign submits, which are triggerd by pushing the enter key, to TML action.

Value(s):

ID of the WebTML Action.

Examples:

The WebTML action "doSearch" is triggered if the enter key is pushed in the input field.

<tml:form id="search" defaultaction="doSearch">
    <tml:input name="query"/>
    <button type="submit">Search</button></td>
</tml:form>