w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

XForms Properties

« Previous Next Chapter »

XForms Properties

XForms uses properties to define data restrictions, types and behaviors.

Examples

A required="true()" property means that the input field is required (cannot be empty on submit).

A type="decimal" property will only allow a decimal value to be submitted.

A calculate property can calculate a value.


Bind Properties to Data

XForms uses the bind element to bind XForms properties to XForms data:

<model>
  <instance>
    <person>
      <fname/>
      <lname/>
    </person>
  </instance>
  <bind nodeset="person/lname" required="true()"/>
</model>

In the example above, the <bind nodeset="person/lname" required="true()"> specifies that the lname input field is required (cannot be empty on submit).


XForms Properties Reference

Name Description
calculate Defines a calculation to be performed on the item
constraint Defines a constraint for the item
p3ptype Defines a P3P data type for the item
readonly Defines an edit restriction for the item (cannot be changed)
relevant Defines how relevant the data is (for display or submission)
required Defines that a data item is required (cannot be blank)
type Defines the data type for the item

« Previous Next Chapter »


1,050,724 Sites built with Wix. Make your own!

Click here to design a Stunning Flash Website for Free

Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.

With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.



FUNC Travel
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
Download XML Editor
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display