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
03-27-2024 07:40 PM - edited 03-27-2024 07:56 PM
Hi All,
I have 2 checkboxes on a form and there are 2 onchange client scripts on each of them. Whenever I tried to make update it, I am getting below error
onChange script error: RangeError: Maximum call stack size exceeded function () { [native code] }
below is the script on checkbox1:
below is the script on checkbox2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 08:54 PM
I think your script is going in loop
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-27-2024 09:11 PM
thanks @Ankur Bawiskar for looking into this
below is our requirement
we have four checkboxes on a catalog form checkbox1, checkbox2, checkbox3, checkbox4 . out of checkbox1 and checkbox2 only one of them is required for submission(either checkbox1 or checkbox2 not both) and from checkbox3 and checkbox4 only one of them is required for submission ((either checkbox3 or checkbox4 not both) . How can achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 09:25 PM
handle this using onSubmit client script
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-27-2024 09:40 PM
@Ankur Bawiskar thank you. If possible can you please provide the sample script?