My app will be accepting URLs via a form’s text input. Is there any way to validate the URLs are formatted correctly? Ultimately giving the user an error if the URL is not a correct format.
1 Like
I’d suggest regex
For anyone else looking, https://www.w3schools.com/tags/att_input_pattern.asp
Use the “pattern” and “title” HTML attributes.
2 Likes