Variable Attribute for URL Variable

Brian Lancaster
Tera Sage

Is there possibly an undocumented variable attribute for the URL variable so it is always unlocked? In the portal it displays like below and our users are not understanding that they have to click the lock button to be able to enter the URL.

BrianLancaster_0-1701289493604.png

 

1 ACCEPTED SOLUTION

Rather not use DOM Manipulation. I just changed it to a text field and then used set the validation regex on the type specifications tab to URL. Well I created a new one called URL v2 with this as the expression:

[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)

View solution in original post

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

Did you check few of these links? The only thing with property change it, it applies to all URL, which I think should be fine.
https://www.servicenow.com/community/developer-forum/unlock-url-variable-in-portal/m-p/1572553

This one is DOM manipulation which may not work in Portal

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0815270

 


Please mark this response as correct or helpful if it assisted you with your question.

Rather not use DOM Manipulation. I just changed it to a text field and then used set the validation regex on the type specifications tab to URL. Well I created a new one called URL v2 with this as the expression:

[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)