Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The field element can have a couple of attributes, including a mandatory attribute type. The type attribute specifies the field type, which can be text, option, text-area, option-text, or date or checkbox.

Some types of fields can have optional attributes. A text-area field accepts height and width as optional attributes. The height and width attributes should be numerical and their values should be in pixels. The text field accepts url as an optional attribute. Setting url="true" will display the text as a URL instead of as a plain text box.

...

Code Block
    <field type="text" validate="^\d+$">
     <name>Age</name>
    </field>

Note: If you want to have characters like '<' in regular expression you have to put corresponding XML codes like &lt; as RXT configuration is an XML document. 

tooltip Attribute

The tooltip attribute can be used to give a tooltip to be shown with any type of field.

...