onSubmit() catalog client script fails with following error message: "onSubmit script error: ReferenceError: x is not defined: function () { [native code] }"Issue There is a record producer that contains an onSubmit catalog client script which is there to validate at least one checkbox variable is selected prior to submitting record producer. This client script fails to work because of following error message: "onSubmit script error: ReferenceError: x is not defined: function () { [native code] }"CauseThe reason why this error message appears is that inside 'onSubmit' catalog client script, there is following line of code where 'x' is not declared.for(x=0;x<mandatory.length;x++){ResolutionChange above mentioned line of code to include 'var' keyword to declare 'x' variable. ie. change it to for(var x=0;x<mandatory.length;x++){