# Attribute Form

This example shows how to create a form with fields creates from attributes read from a WFS DescribeFeatureType response. This can be useful when doing feature editing with WFS-T.

Note that validation is activated based on the restriction information read from the DescribeFeatureType document. For example the "STATE_NAME", "STATE_FIPS", "SUB_REGION", and "STATE_ABBR" text fields indicate errors if more than 5 characters are entered.

Field labels have been formatted with templates, so that a star is displayed when the field is required.

Note that the js is not minified so it is readable. See attribute-form.js.