formbar / test / form.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <source>
    <!-- Define different entity types -->
    <entity id="e0" name="default"/>
    <entity id="e1" name="string" label="String field" type="string"/>
    <entity id="e2" name="integer" label="Integer field" type="integer" required="true">
      <rule expr="$integer ge 16" msg="Integer must be greated than 15" mode="post"/>
    </entity>
    <entity id="e3" name="float" label="Float field" type="float">
      <rule expr="$float lt 100" msg="Float must be lower than 100" mode="post"/>
      <help>This is is a very long helptext which should span over
      multiple rows. Further the will check if there are further html
      tags allowed.</help>
    </entity>
    <entity id="e4" name="date" label="Date field" type="date" autocomplete="off" css="datefield" number="1">
      <help>This is my helptext</help>
    </entity>
    <entity id="e8" name="select">
      <options>
        <option value="1">Value 1</option>
        <option value="2">Value 2</option>
        <option value="3">Value 3</option>
      </options>
    </entity>
    <!-- Fields for the user object -->
    <entity id="e5" name="name"/>
    <entity id="e6" name="fullname"/>
    <entity id="e7" name="password"/>
  </source>
  <form id="userform1">
    <row>
      <col><field ref="e6"/></col>
      <col><field ref="e7"/></col>
    </row>
  </form>
  <form id="userform2">
    <row>
      <col><field ref="e5"/></col>
      <col><field ref="e6"/></col>
      <col><field ref="e7"/></col>
    </row>
  </form>
  <form id="testform">
  </form>
  <form id="customform" css="testcss" readonly="false" autocomplete="off" method="GET" action="http://" enctype="multipart/form-data">
    <row>
      <col><field ref="e1"/></col>
    </row>
    <snippet ref="s1"/>
  </form>
  <form id="ambigous">
  </form>
  <form id="ambigous">
  </form>
  <snippet id="s1">
    <row>
      <col><field ref="e0"/></col>
      <col><field ref="e8"/></col>
    </row>
    <row>
      <col><field ref="e3"/></col>
      <col><field ref="e4"/></col>
    </row>
    <snippet ref="s2"/>
  </snippet>
  <snippet id="s2">
    <row>
      <col><field ref="e1"/></col>
      <col><field ref="e2"/></col>
    </row>
  </snippet>
  <form id="customform-readonly" css="testcss" readonly="false" autocomplete="off" method="GET" action="http://" enctype="multipart/form-data">
    <row>
      <col><field ref="e1"/></col>
    </row>
    <snippet ref="s1"/>
  </form>
</configuration>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.