@is_12 

I already suggested to use 2 onChange client scripts

When you use onSubmit with GlideAjax, there are challenges that the form gets submitted by the time the ajax function returns the value.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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