Skip to main content

Xforms Guide

Xforms Guide

Xforms is a W3C standard for defining the behaviour of an advanced form.  Although browsers do not currently read forms in this format, eonicweb uses it to define forms and their behaviour.

Xforms are stored as files either in the common directory or a site specific local directory.

The main elements of the form are as following:

Content - Contains the type, which is xform and name the form.

Model – Separates the input part of the form from the logic of the form.

Instance – The instance is the XML to be updated by the form. 

Submission - Where the form is going to be sent.

Bind - The link the controls (the inputs of the form) to the instance (the xml to be updated)

Model ends.

Controls - These are the inputs for the form, they link to the bind.