Where is the URL validation coming from for the default Website field?

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #485838

    Directory Path
    Expired Member
    Post count: 235

    Hi,

    Where is the validation for the website field coming from if it’s not defined in the field? I’d like to copy it to other url fields too but modified.
    Thanks

    #485870

    Alex Rollin
    Moderator
    Post count: 27815

    It is in code and applied automatically to URL fields so as to require http:// or https:// before the rest of the URL.

    The validation field is only available for text and phone fields at this time; applying custom validation to URLs would be a customization outside of what we can help with here in the support forum.

    You might be able to use a text field to do what you want, especially if you can use a GD Post Badge for the output.

    #485885

    Directory Path
    Expired Member
    Post count: 235

    Thank you. To make a field for an instagram URL, should I use the URL or Text field?

    #485888

    Alex Rollin
    Moderator
    Post count: 27815

    To make a URL field, use a URL field.

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount