Short Text field accepts invalid URLs even if the validation is set to URL

  • rtolmach
    Asked on March 19, 2024 at 4:42 PM

    Hi JF


    Our form (URL below) asks the SHORT TEXT question, "Your Linkedin URL"

    Options / Validation = "URL"

    But the entry:

    Submission ID = 208.50.108.50

    has this content in that field:

    https://www.linkedin/ann-koppitch- 475b1628a


    It starts like a URL, but

    • you will see the space in it, and
    • it does not have a .com (or anything similar),

    so jotform should not have accepted it as a URL.


    Thanks


  • Rose JotForm Support
    Replied on March 19, 2024 at 5:26 PM

    Hi rtolmach,

    Thanks for reaching out to us for help. I am currently investigating your issue and need more time. I will get back to you shortly.

    Let us know if there’s anything else we can help you with. 

  • Rose JotForm Support
    Replied on March 19, 2024 at 6:04 PM

    Hi rtolmach,

    Thanks for getting back to us. I tested the issue and I was able to confirm that when the URL validation on the Short Text field is enabled, it will accept the input if you already enter a "www.domain" format. I escalated the issue to our Developer Team for further investigation. I am unable to provide any ETA of the resolution at the moment. But rest assured that we will get back to you on this ticket as soon as we have an update from them.

    In the meantime, you can add a condition to prevent the users from submitting the form if the URL they enter does not have the ".com" value. Let me show you how:

    • First, you can add a message to let the users know that they need to enter a valid URL. You can use the Paragraph field.

    Short Text field accepts invalid URLs even if the validation is set to URL Image 1 Screenshot 40

    • Add this condition to display the Paragraph field and hide the submit button if the user enters a URL with no ".com" value:

    Short Text field accepts invalid URLs even if the validation is set to URL Image 2 Screenshot 51

    Here's the output:

    Short Text field accepts invalid URLs even if the validation is set to URL Image 3 Screenshot 62

    Let us know if there’s anything else we can help you with. 

  • rtolmach
    Replied on March 21, 2024 at 12:42 PM

    thanks

  • korhanozbek JotForm Developer
    Replied on April 1, 2024 at 3:28 AM

    Hi rtolmach,

    Thanks for getting to us. We checked your request, and actually it's a valid URL for MDN that defining browser language organization.

    So, the "https://linkedin" is valid for them and we can't change it of common usage.

    Let us know if you need for more help.

  • rtolmach
    Replied on April 16, 2024 at 12:43 PM

    I believe you are mistaken.

    https://www.linkedin/ann-koppitch- is not a valid URLbecause it does not have a TLD, such as ".com"


    Try it in a browser.


    Many thanks

  • Kenneth JotForm Support
    Replied on April 16, 2024 at 1:27 PM

    Hi rtolmach,

    Thanks for getting back to us. I'll inform our Developers about this. We thank you for your patience and understanding as we investigate further. Rest assured, we’ll keep working on this until it's resolved.

    We’ll get back to you as soon as we have an update.


  • korhanozbek JotForm Developer
    Replied on April 17, 2024 at 8:47 AM

    Hi rtolmach,

    Thanks for getting back to us. I understood how this issue stressful for you. But, we're using JavaScript's URL methods. It's comes from MDN's native API that is supported from all browsers. It's saying valid for URL that you shared. Checkout the following code below.

    new URL('https://www.linkedin/ann-koppitch-')

    Also, you can check out it in this URL.

    Let us know if you need for more help.

  • rtolmach
    Replied on April 17, 2024 at 11:04 PM

    thanks

 
Your Answer