onChange script error: RangeError: Maximum call stack size exceeded function () { [native code] }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2025 01:24 AM
Hi Team,
I am trying set the format of the date and time filed but I am getting error --onChange script error: RangeError: Maximum call stack size exceeded function () { [native code] }
Kindly help me with this bellow is the code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 05:53 AM
Hi,
Can you give more information about the client Script. What is the value in the 'field name' field ? For the Onchange work correctly, the 'field name' must be a field in date/time format.
Thanks,
Mandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 05:57 AM
your script is going in loop as you are setting the field and again the onChange is triggering
what's your business requirement to convert the date?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader