Checking if a string is a URL

Hi,

I made an in-app browser to open links in the app I’m currently making. However, I can’t get the Text Input to recognize whether the text is a normal phrase or a URL. I already tried to implement the existing solution on the forum:

([Thunkable Classic] Checkif text is an url

Whenever i type a URL on the textbook then it will just result in an error:

Would anyone mind to tell me what went wrong? :sweat_smile:

Thanks,
Haziq

1 Like

Can you try something like www.google.com?
What is the response from your app?

Hi, sorry for taking long to respond!

In fact, that is what I typed (google.com) in the Text Input just like in the screenshot, and it still gives the -1100 error! It’s so confusing. The blocks are correct, right?

1 Like

You need to test by typing https://www.google.com

If this works then use www.google.com

And so on. Make sure you do not add any space in front of the name or at the end of it.

1 Like