• I have added the default Facebook, Instagram, YouTube and Twitter fields onto the profile page and they are all set to validate by their respective provided methods.

    Using the Facebook one as an example, if I enter:

    @blah

    I get the message:

    Please enter a valid Facebook username or profile URL

    What does it exactly mean by “username”?

    Continuing with my example, the username would be “blah”, and if I enter just that, URL displayed is:

    https://blah

    What does the validation actually validate? Surely I shouldn’t just be able to enter the word “blah” as that is not a valid URL? If it can somehow work out that a username has been entered, then surely the resulting URL should have “https://facebook.com/” as a prefix?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @hshah,

    The current version of the Ultimate member core requires a full URL to your social platform profile.

    Regards.

    Thread Starter hshah

    (@hshah)

    Hi,

    So the validation message is incorrect then? Can you update it please so that it doesn’t instruct users to enter just their username?

    Also, I read up on custom validation and can’t figure out how to validate based on URL. For example, with the Facebook one, I would want to ensure it started with “https://facebook.com/” and users entered their details at the end.

    Thread Starter hshah

    (@hshah)

    I’ve also found that if you set a default value (ie “https://facebook.com/[username]”) and the user doesn’t touch this field when editing their profile, this text gets saved during the update. Surely it should check whether the field has been updated?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL Validation’ is closed to new replies.