Streaming live at 10am (PST)

Website URL validation in form

I am not sure if this is the right category to post this, but I just had to. Sorry :frowning:

I have created a form where I need to ask for the user website URL. Now, when you add a text field, Webflow gives text type options like plain, email, password, phone, number - which validates the field automatically. In my case, how can I check if the entered value is a valid web URL or not. Is there any default option given by Webflow or any way to do it using the custom code?

I am a newbie to Webflow, this is my 3rd day with it.

@gautamlakum welcome to the forums. You won’t need javascript for this but you will need to insert the field using an HTML ember since Webflow doesn’t offer the HTML5 url validation.

See this article: https://stackoverflow.com/questions/13820477/input-tag-validation-for-url

So just drop your field in using an HTML embed and custom code the input type as url.