Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2020 08:37 AM
You can create onChange client script on the URL field to validate:
replace your field with the url field
var url = g_form.getValue('your field');
var re = /^(http[s]?:\/\/){0,1}(www\.){0,1}[a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,5}[\.]{0,1}/;
if (!re.test(url)) {
g_form.showFieldMsg('your field', 'invalid url');
return false;
}