Defines the direction of text on a form. This option is typically used for bidirectional languages, such as Arabic and Hebrew.
For example, if you set your form's locale to bidirectional (xml:lang) , the dominant orientation of the form is right-to-left. However, e-mail addresses and URLs are always displayed left-to-right. Therefore, if you want users to enter their e-mail address into a field, you would need to use the orientation option to change the direction of the text from right-to-left to left-to-right.
<orientation>direction</orientation>
Parameter | Type | Description |
---|---|---|
direction | rtl ltr |
Optional. Sets the orientation as Right-To-Left. Optional. Sets the orientation as Left-To-Right. |
button, check, checkgroup, combobox, field, global, global, globalpage, label, list, popup, radio, radiogroup, richtext, pane, slider, table, toolbar.
This following example shows a form using a bidirectional language, and the orientation option to set the text orientation in the field to Left-to-Right direction. The label is using the xml:lang orientation Right-To-Left and the e-mail address field is using the orientation of Left-To-Right.
<?xml version="1.0" encoding="UTF-8"?>
<XFDL xmlns:xfdl="http://www.ibm.com/xmlns/prod/XFDL/8.0
xml:lang="ar-XX">
...
<label sid="FIELD1_LABEL1">
<itemlocation>
<x>160</x>
<y>108</y>
</itemlocation>
<value>E-mail address:</value>
</label>
<field sid="FIELD1">
<orientation>ltr</orientation>
<scrollhoriz>wordwrap</scrollhoriz>
<value></value>
</field>