How to setup a form to report validation errors additionally next to each field which failed the validation
Here is the form:
ConfiForms Form Definition | ||
---|---|---|
| ||
|
This behavior is managed through the parameter on ConfiForms Registrations Control
Which results in this behavior
Here is the storage format for the configuration
Code Block |
---|
<ac:structured-macro ac:macro-id="6230ef69-3f9c-4752-a485-add82127a7d0" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">f1</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="f9976c96-4454-4583-8d4c-0e08cdf25a8a" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="reportFieldErrors">true</ac:parameter>
<ac:parameter ac:name="embedded">true</ac:parameter>
<ac:rich-text-body>
<p> </p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="b987bd55-7375-49f3-8548-8cb49ce8662c" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">t</ac:parameter>
<ac:parameter ac:name="fieldLabel">t</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="4ab4650c-74fd-4195-9ab9-e9025fe627f9" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">t1</ac:parameter>
<ac:parameter ac:name="fieldLabel">t1</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro> |