ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Question about the JavaScript functions on "onSubmit" attribute of a form


Article ID: 36912


Updated On:


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



Can I put multiple JavaScript functions in onSubmit of a form  the same as  onLoad of a form?  How will catalog will evaluate the Boolean here?  


Service Catalog 12.8, 12.9,14.1


1) onSubmit expects only a single function and it  can only be one or none in this attribute for each form. However, while submitting the request, it will aggregate onSubmit values of all forms inside that request. In this process, it will not allow to submit, even if there is failure of Onsubmit in one form. So you should NOT put more than one javascript functions in onSubmit attribute of a form. 

2)  You  can have multiple javascript functions in 'onLoad' attribute of a form seperated by ';'.  But this is not the case with 'onSubmit'.















Release: CASVCT99000-12.9-Service Catalog