Hello,
I have multiple forms that require my user to add their website url (+ fb, instagram, etc…). It’s a simple input text box with “url” validation and set as “required”.
The problem is that the users have to write the full url : https://www.example.com to be valid. When they just write www.example.com, it’s not valid and the box is red with no message…
So, many of my users are stuck because they don’t know what is wrong…
Is there a way to avoid typing https:// in the field but still have a verification ? Or if it’s compulsory, can it be inserted everytime a user write in the field ?
Many thanks in advance for your help,
Quentin
A simple solution would be to inform your USERS with a simple INFO-BOX poping out somewhere on your screen, to let your USERS know what kind of issue they are facing.
…or you you are using custom validation,
…or you create a your own js-validation function to validate, for example like already shown by GIRI-ZANO —> using RegEx.
Another possibility would be —>
String manipulation functions : Many programming languages offer built-in functions for string manipulation, such as Python’s split()
, find()
, replace()
, etc. These can often be used instead of regular expressions for simpler text processing tasks.
1 Like
Thanks. 
I’ll will try the pop up or the regex.
Extra scripts seem too complicated. I’m an average user ^^.
I don’t understand why there is no option to avoid writting https:// in Wix by default ?
Many users don’t even know that https:// exist and just write www. 
Thanks.
I will try this solution too. 