femanager icon indicating copy to clipboard operation
femanager copied to clipboard

Set errorClass in Form-Fields

Open ha75 opened this issue 4 years ago • 1 comments

How to set an error class to any form field if it is not valid? I tried to add errorClass e.g. in Partials/Fields/Username.html

<femanager:form.textfield
		id="femanager_field_username"
		property="username"
		class="form-control"
		errorClass="form-control"
		additionalAttributes="{femanager:Validation.FormValidationData(settings:settings,fieldName:'username')}" />

However, this is not working.

ha75 avatar May 08 '21 22:05 ha75

I can confirm this. Neither with client validation (JS writes error as class) nor server validation (no class was added).

spoonerWeb avatar Jun 11 '21 06:06 spoonerWeb