getelementByclassname is not working in service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 12:37 AM
Hi All,
I m using a on laod client script :
var labels = document.getElementsByClassName("control-label"); but it is throwing me typeerror: cannot read the property (getElementsByClassName)of null.
Verified Isolate script to false.
Regards,
Sowmya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2020 12:40 AM
Hi Sowmya,
what is your requirement here?
Seems to be duplicate question:
https://community.servicenow.com/community?id=community_question&sys_id=fb521a44dbb704d4414eeeb5ca961964
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
03-22-2020 03:47 AM
Hi,
May be a Duplicate thread: https://community.servicenow.com/community?id=community_question&sys_id=fb521a44dbb704d4414eeeb5ca96...
Check Isolate script flag on client script.
Thanks,
Ashutosh