Client-side code should not use DOM manipulation technique

phani24
Tera Contributor

Hi,

we recently run a health scan and wanted to change DOM calls and the given recommendation is 

"find_real_file.png"

can someone help me on how we can achieve this without disturbing the ongoing fucntionality

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

They are using to set some values like this 

" document.getElementById('lookup.incident.assignment_group').style.display="none";"

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

If this is what we need to change and use some glide form API to replace this ,how can we achieve that