Skip to main content
Participating Frequently
Jun 8, 2023 11:23 PM UTC
Question

How do I create a Input Purpose for validating a URL

They have name, email, phone, etc but it seems weird that URL isn't an option

    3 replies

    mathieud0001
    Genius
    Jun 9, 2023 2:43 AM UTC

    Input purpose is used for auto complete not validation.

    To validate a url, I would suggest using a regex.

    harshitb6843
    Brainy
    Jun 9, 2023 4:45 AM UTC

    And if you are poor at regex like me, you can use chatGPT to generate them. Works like a charm! (not a promotion)