
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 12:25 PM
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.
Solved! Go to Solution.
- Labels:
-
Service Catalog
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 04:54 PM - edited 11-30-2023 04:54 PM
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@:%_\+.~#?&//=]*)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 12:31 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 04:54 PM - edited 11-30-2023 04:54 PM
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@:%_\+.~#?&//=]*)