onChange script error: RangeError: Maximum call stack size exceeded function () { [native code] }

keshav77
Tera Contributor

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

keshav77_1-1736328228219.pngkeshav77_2-1736328275646.png

 

 

2 REPLIES 2

mandy_coelho
Tera Contributor

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

Ankur Bawiskar
Tera Patron
Tera Patron

@keshav77 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader