How to stop Service Portal's SC Page refresh when getting data back from Script Include?

Community Alums
Not applicable

Hi Experts,

 

I have a written a Catalog Client Script and using Glide Ajax getXMLAnswer() to get data back from Server(Script Include). On return, I am getting the correct data on Service Portal's Service Catalog but it displays the data for <1 sec and then it refreshes and data disappear from SOME fields but not all the fields.

 

Any thoughts?

 

Thanks,

MK  

1 ACCEPTED SOLUTION

Community Alums
Not applicable

I found the issue.

For everyone awareness: My business requirement was to call On Change Catalog Client Script on different fields. Since those fields were populating(bring data from Glide Ajax Script include) so it is executing multiple times i.e. the page was refreshing many times. I have put a flags on each Client Script to execute the Catalog Client script only for that particular field whenever user enters data. 

View solution in original post

1 REPLY 1

Community Alums
Not applicable

I found the issue.

For everyone awareness: My business requirement was to call On Change Catalog Client Script on different fields. Since those fields were populating(bring data from Glide Ajax Script include) so it is executing multiple times i.e. the page was refreshing many times. I have put a flags on each Client Script to execute the Catalog Client script only for that particular field whenever user enters data.