Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 1 min read

Support

Motivation

You want to send a request to a web server to add additional XML data into your form. This allows different parts of an XForms to defer getting data till it is needed. This makes large forms load faster and avoids unessary network traffic.

Using the send element

The send element has a single parameter which is submission. This must be the ID of one of the submission elements in your model.

Here is and example:

submission="get-additional-data"/>

If you reference this submission you will need a corresponding submission in your model.

id="get-additional-data" .../>

Common Usage

The most common usage of send is to perform incremental model loading. If you have a large form with many tabs you can wait till the user selects the tab to load the data for this tab.

In the following code fragment, if the user selects tab-5 of the form the submission to load the form data will be sent to the server.

id="tab-5">
ev:event="xforms-select" if="not(instance('tab-5-data')/my-data)">
submission="get-tab-5-data"/>

Tab 5

See XForms/Incremental_Model_Loading for an example of how this works.

Where this page came from

This page was imported from Wikibooks. From “XForms” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Get each new page of

XForms

Following means one email when a page is added, nothing when a page changes.

Following means one email when a page is added, nothing when a page changes.

Comments

Spinner Logo

Next in XForms

CC BY-SA 4.0
Show can have two values: **new** or **replace**. - **target** - the target action to be executed One is the URI of the resource to load and the other is the show attribute. The show attribute can have values of "replace" which will replace the current form with the new resource and "new" which will
CC BY-SA 4.0
On many HTML forms you fill out the form and press a button at the bottom of the form called "Save" or "Submit". You pressed the button and hoped your data would get saved. This is the same concept. But in this case the submit command can be triggered in many ways other that just a button being pres
CC BY-SA 4.0
action=" method="post" id="submit" includenamespaceprefixes=""/> action=" method="post" includenamespaceprefixes="#default"/> ## Sample Form xmlns=" xmlns:ev=" xmlns:xsd=" xmlns:xf=" xmlns:task=" task:dummy="dummy"> Test of XForms Submission Namespace Inclusion type="text/css"> @namespace xf url(" b
CC BY-SA 4.0
xmlns=" xmlns:ev=" xmlns:xhtml=" xmlns:xs=" xmlns:fr=" xmlns:xxforms=" xmlns:xf=" Save Test xmlns="" id="save-data"> form-id="unit-tests-save-test"> Dan McCreary xmlns="" id="save-results"> No Save Results Yet id="save-submission" ref="instance('save-data')" method="post" resource=" replace="instanc
CC BY-SA 4.0
Add the following instance to your model: xmlns="" id="log"> log initialized Whenever you want to see an event, just add an action that appends an event to the end of the log: ev:event="xforms-deselect"> nodeset="instance('log')/event" at="last()" position="after" /> ref="instance('log')/event[last(
CC BY-SA 4.0
First you need to give the control you want to receive the first keystroke event an **id** attribute. For example: id="first-field"> Search The next step is to use the **xforms-ready** event to set the focus to this field using the **setfocus** element. These initial actions are usually placed at th