Date variable is not auto-populated from existing RITMs

R_ana
Tera Guru

Hi All,

 

I have a catalog item, with 1 drop down ( displaying all RITMs submitted for this catalog item) and 2 date fields(Start Date, End Date).

Ask is to auto-populate the 2 date fields based on the RITM selected from drop-down.

I used GlideAjax and getting start date field properly.

However, the end date is getting nullified. we have a custom catalog client script which validates the start and end date :

R_ana_0-1727854630505.png

when I try to select the RITM from drop-down, my start date gets populated but end date throws error:

R_ana_1-1727854703596.png

I am not sure why the catalog client script is throwing error only for end date.

 

Please help.

 

Thanks and regards,

R'ana

 

1 ACCEPTED SOLUTION

R_ana
Tera Guru

Please ignore the query.

I was able to get it fixed by de-activating the existing validation on catalog client script and moved the validation logic to Script Include and called it via a GlideAjax to throw the error message.

View solution in original post

2 REPLIES 2

R_ana
Tera Guru

Just to add, I de-activated the validation catalog client script and it works for the end date.

Please help me understand if there is an issue with the validation as it works independently on the catalog item.

 

Regards,

R'ana

R_ana
Tera Guru

Please ignore the query.

I was able to get it fixed by de-activating the existing validation on catalog client script and moved the validation logic to Script Include and called it via a GlideAjax to throw the error message.