g_form.getTableName() is not working when I need to use it as condition in Client Script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:05 AM - edited 04-08-2024 09:06 AM
Hi All!
I'm facing this issue :
On TASK table there is one Client script : Assignment Group onChange, it is clearing the Assigned To Value.
The issue is that Im trying to restrict this for an specific table using :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 10:29 AM
You must have some other problem, 'g_form.getTableName()' worked in my Client script', returns the name value of the table. Don't use the label value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 10:39 AM - edited 04-08-2024 10:43 AM
Please try this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 10:42 AM
Hi there,
Don't see immediately an issue with this. Can you share more of your code? Or are you sure the issue is not in something else of your code?
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field