Widget flowLabel

Widget flowLabel

The flowLabel widget displays a locale specific flowLabel.

It is advisable to set the readOnly property of the schema property definition to true. This will prevent changes to the field content.

The value of a read only field will not be included in the save/submit data of the form. This prevents inadvertent changes to read only fields.

Example

{
    "schema": {
        "properties": {
            "myflowLabelProperty": {
                "type": "string"
                "readOnly": true
            }
        }
    },
    "form": [
        "myflowLabelProperty"
    ],
    "uiSchema": {
        "myflowLabelProperty": {
            "widget": "flowLabel"
        }
    },
    "formData": {
        "myflowLabelProperty": "MY_STATE"
    }
}

This will render a read only text input field that formats the value MY_STATE using the locale of the client.