OFBiz Form widgets are widgets that create HTML forms based on XML declarations found in a Form widget definition file. A Form widget definition file is any XML document that has the following XSD:
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "http://ofbiz.apache.org/dtds/widget-form.xsd">
Form widgets can be added by following these simple steps:
1. Create a Form widget definition within an existing Form widget definition file.
2. Give the Form widget a name.
3. Add one or more
field
elements. Be sure to close all elements with end tags.4. A simple Form widget definition that creates a single HTML form with a single HTML form
<INPUT type="text">
element may be defined as follows:<form name="MyForm" target="someTargetURL" title="MyForm" > <field name="Field 1"><text /> </field> </form>
5. Add the Form widget to an existing Screen widget definition. For example:
<include...