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?
How does the url get populated in the input field on page load? Or is that just the placeholder?
I like @stuart4 approach 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. 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.
and view in the editor
This topic was automatically closed after 70 days. New replies are no longer allowed.