Can I remove Lock Icon In URL Variable on Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2021 05:01 AM
I am trying to remove lock icon in url type variable on Service Portal Is this Possible?
Or Can I Create a Custom URL type Variable without Lock Icon On SP?
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2021 05:03 AM
Hi there,
There's no attribute or something to remove the lock icon itself. Though you could use CSS to remove it. Else you could use a Single Line Text variable.
For using the CSS, read this article which I wrote a while back:
Changing Service Portal widgets look and feel without cloning widgets
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020, 2021 ServiceNow Community MVP
2020, 2021 ServiceNow Developer MVP
---
LinkedIn
Community article, blog, video list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2021 05:05 AM
Hii mark
How Can I create Single line text variable for url variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2021 03:41 AM
The padlock system settings for list and url fields can be found by navigating to ‘System Properties -> UI Properties’. Be aware that these will apply across the platform when set. This is a great article on the subject and how you can manipulate individual fields:
- ‘Glide lists start out locked’ (glide.ui.glide_list.start.locked) – Controls the default lock behavior of ALL glide_list fields on form load
- ‘Unlock empty URL fields on form load’ (glide.ui.unlock_empty_url) – Controls the default lock behavior of all empty URL fields on form load
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2024 11:31 AM
Unfortunately, setting the glide.ui.unlock_empty_url system property to true didn't work for my use case where I added a URL field to a table and was wanting it to be unlocked by default on load if it was empty. Not sure if that system property is old or just deprecated (the one on our organization's instance is from 2009).
However, what did work was using an OnLoad client script like so (where my URL field was 'url'):
function onLoad() {
if (g_form.getValue('url') == '') {
g_form.getControl("url_unlock").click();
}
}
Credit to these other two posts I found after the system property didn't work for me:
Solved: leave Link / URL field unlocked - ServiceNow Community
Can I remove Lock Icon In URL Variable on Service ... - ServiceNow Community