URL validation mystery πŸ§™πŸ»β€β™‚οΈ

Hey Bubblenauts! :rocket:

Can you help me to solve my mystery, please?

I made custom URL validation via Regex and put there two conditions.

First condition make font color to red IF the URL is not good.

Second condition make font color to grey IF the URL is good.

Everything works fine until I load the page and I dont know why. Can you help me, please? :slight_smile:


Screenshot 2022-05-05 at 7.03.47

How does the url get populated in the input field on page load? Or is that just the placeholder?

1 Like

not sure if my solution help you out: URL Validation of Inputs and stripping of folder structures

1 Like

I like @stuart4 approach :+1: and I want to try it out to see if it works in my case. I’ve not previously managed to get it working with custom states but maybe I should try harder. :slight_smile: I think it’s to do with the order things get evaluated on page load - I just never have managed to get it consistently working with custom states.

So here’s a working example with a hackey input field approach.

https://knowcode-tech.bubbleapps.io/version-test/url_input_validation?debug_mode=true

and view in the editor
https://bubble.io/page?type=page&name=url_input_validation&id=knowcode-tech&tab=tabs-1

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.