Restricting special characters in text inputs

How can I restrict special characters or only allow certain characters in a text input for a username.

Also only restricting it to lowercase letters?

Thank you in advance!

there may be a plugin for that…but you can also just say on the input to conditionally have the initial value equal to the inputs value and use :lowercase operator on it, so doesn’t matter what the user types, or just do that when saving the data, or make it so the username is the slug of the datafield (smarter way because slugs are unique)

I think you can easily achieve this with some Regex.


This topic was automatically closed after 70 days. New replies are no longer allowed.