Client-side code should not use DOM manipulation technique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 12:26 AM
Hi,
we recently run a health scan and wanted to change DOM calls and the given recommendation is
""
can someone help me on how we can achieve this without disturbing the ongoing fucntionality
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 12:37 AM
Hi Phani,
What functionality is being currently achieved using DOM manipulation? What type of script it is? is it client script etc?
If you can share that then help can be provided
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 03:09 AM
Hi Ankur,
They are using to set some values like this
" document.getElementById('lookup.incident.assignment_group').style.display="none";"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 03:49 AM
Hi Phani,
I think they are trying to hide the assignment_field lookup icon
Mark ā
Correct if this solves your issue and also mark š Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2019 03:59 AM
If this is what we need to change and use some glide form API to replace this ,how can we achieve that