Lock icon still visible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 03:09 AM - edited 04-19-2023 03:11 AM
Hello.
After adding the attribute "start_locked=false" to a list type field, the lock icon remains visible.
The solution I developed was to create a Client Script with the following line "document.getElementById('change_request.u_select_tasks').style.display = 'none';"
But I´m not sure if this is the best solution.
PS: there is no conflict with UI Policy or Client Scripts.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 05:55 AM
so the lock icon is shown but it's not clickable i.e. it is locked?
if yes then I believe your requirement is achieved.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 06:28 AM
No. It´s clickable. When clicked, the button desappears and nothing happens. But I don´t want it visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 06:41 AM
so you want the lock icon to be hidden always?
If yes then how users will select value in it?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2023 07:08 AM
The value can be inserted because the field is already opened, as shown above. I just wanted to hide the lock icon.