@1_DipikaD 

alert didn't come?

if yes then your client script config is wrong.

client script is marked as Applies on Catalog item view right?

if not then it won't run

share client script config screenshot

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