Skip Navigation

Cannot use Toolset forms to create/edit users whose usernames contain a dot (.) character or a space

Resolved

Reported for: Toolset Forms 2.4

Resolved in: 2.5

Symptoms

If a user has a dot (.) character or a space in their username, it is not possible to use Toolset forms to create or edit them.

In this case, you will get the following validation error message:

  • The username can only contain alphanumeric characters, dashes or underscores.

Workaround

This will get entirely fixed in the next version of Forms, but for now this patch can be used to extend the validation method for usernames to include dots (.), spaces ( ), and even at (@) characters.

To apply the patch, unzip it and upload the file it contains, to replace the one with the same name, in /vendor/toolset/toolset-common/toolset-forms/js/. You will need to apply this patch to all the Toolset plugins you have installed in your site: Types, Views, Forms, Access, and Layouts.

Also, do not forget to update the validation message for the username input in your relevant user forms.

Comments are closed