error: [onChange script error: RangeError: Maximum call stack size exceeded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 02:52 AM
I write a string convert code.
but when I call it through form, I got an error below.
onChange script error: RangeError: Maximum call stack size exceeded function () { [native code] }
can anyone help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 03:23 AM
Hi @jieLian123
Your code might be creating an endless loop due to which the call stack (part of the memory) exceeds the limit. Please have a look on the below posts to troubleshoot. Also, debug your code to see where the loop is being created and fix it.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:31 PM - edited 01-22-2024 08:08 PM
Thanks.
I have move the toHalfWidth function to a script include using GlideAjax and called it in my onChange script.
it seems working well when I input something the first time.
but when I was tring to change it again to trigger the script.
I cannnot change it, I kept getting the converted value the first time script include returns to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 07:59 PM
Hi @jieLian123
Can you please share your script include code as well ? Also, I can see 2 On-Change Client Scripts. Any particular reason for that ?
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 08:16 PM