What if I know for sure the URL is faulty but what I am trying to do is set up some user-friendly error handling?
So I have a field for a user to enter a URL, and it will show a preview of the link’s title and image. But if they enter a bad URL, or just type gibberish in there, since bubble doesn’t have a URL field type or url validator, and as far as I can tell no plugin for this either, I would like to “intercept” the error on the backend through a workflow condition or anything else, and show a normal error to the user like “this does not appear to be a valid URL” instead of that browser popup that will confuse them.
I have tried to use some conditions in the workflow of “if link preview’s url/title is not empty” but nothing worked, I still see the popup error on the front end.
There must be a way for me to do proper error handling no? If not, do you know of any decent way to validate the URL before I call the preview link action? (other than pure regex, aka pure headache)