ITSM

Harish Bainsla
Tera Sage
Tera Sage

Hi Everyone 

I have a catalog item leave tracker

HarishBainsla_0-1698906436440.png

there are two field leave start date and leave and date and there is leave balance table in which it update the leave type and no of leave taken and leave left 

HarishBainsla_1-1698906540099.png

i want to validate on catalog item if user apply more leave then balance leave than it will not allow user to submit a catalog item

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Harish Bainsla 

you should use onChange on End Date and perform GlideAjax and validate this

what did you start with and where are you stuck?

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

I need help in script if code is provided then it will be helpful