Jump to content

Featured Replies

Posted

I have a custom profile field for "Discord Handle" that I require on forum registration, as our community is tied to our Discord. 

The field type is "Text", however when someone attempts to register, it says their entry is invalid. It is rejecting the use of the # sign inside the text field, which is needed, because, as you all know, all Discord usernames are in the format of their handle followed by four numbers with the # in-between. 

Any thoughts?

Signup page:

register_error.png.c466910b10475382de1ff9adb34b7d79.png

ACP > Member Profile Fields  - (Note: The description fields and Regular Expression fields are empty.)

discord_profile_field.png.a5d423b8c8cd2968dcdaae8e520c986f.png

  • 3 months later...

A quick google search revealed an existing regex:
 

/^.{3,32}#[0-9]{4}$/

 

Edited by catbreadbat

This is actually quite an old post, however it does appear to have been missed for some reason, so please do let us know if you are experiencing the same issue

Recently Browsing 0

  • No registered users viewing this page.