Is there any Servicenow doc for avoid using DOM Manipulation

Di Zhang
Tera Guru
Our client ask us to disable the hint using DOM Manipulation for all the fields. I want to give him some official advise
1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Di Zhang ,

When manipulating DOM elements, interactions often involve classes and IDs. The risk arises that ServiceNow may alter these names in a future update, potentially causing the script to no longer function as anticipated.

 

Also, you can take this official KB , which also talks about As per the best practises it is not recommended to use DOM Manipulation techniques in the client-side scripting : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0954537

 

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hi @Di Zhang ,

When manipulating DOM elements, interactions often involve classes and IDs. The risk arises that ServiceNow may alter these names in a future update, potentially causing the script to no longer function as anticipated.

 

Also, you can take this official KB , which also talks about As per the best practises it is not recommended to use DOM Manipulation techniques in the client-side scripting : https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0954537

 

Juhi Poddar
Kilo Patron

Hello @Di Zhang 

Maybe this could be helpful: How to hide Form Annotation until specific field condions are met

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar