open() JS function in the onLoad attribite of a form no longer working in 17.1.02 or 17.2

book

Article ID: 131641

calendar_today

Updated On:

Products

CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

We have a link to a wiki page  placed in  a catalog form's onLoad attribute .  Each time ,  the form is loaded , it will automatically open another web page specified in it .  It used to work fine prior to 17.1 RU2 .  After 17.1 RU2 , it no longer works . 

Cause

If there is no any form  component added into the form (i.e., Empty form) ,  it will have the issue with it .   Due to some underline form implementation design change  ,  catalog  will trigger form onload only when there is at-least one field in the form (which can have any state, i..e.,  hidden, disabled etc.), the workaround is to add at-least an empty label component in the form for it to trigger on-load function.

Environment

ITSM  catalog 17.1 RU2 , 17.2

Resolution

Add at-least an empty label component in the form for it to trigger on-load function