The client controller script on a Macro variable referencing a widget is no longer initialized before the onLoad catalog client scripts run in Service PortalDescriptionSince London, the client controller script on a Macro variable referencing a widget is no longer initialized before the onLoad catalog client scripts run in Service Portal.Steps to Reproduce 1) Import the attached widget "PRB1317174 Macro widget.xml"2) Import the attached Macro variable for Apple iPad 3 catalog item "PRB1317174 macro var.xml"2) Import the attached Single Line Text variable for Apple iPad 3 catalog item "PRB1317174 Single line text var.xml"4) Import the attached onLoad Catalog Client Script "PRB1317174 catalog client script.xml" referencing the Apple iPad 3 catalog item with the following onLoad script: function onLoad() { console.log('Running onLoad script'); if (g_form.getValue("field_1") == "")alert("BAD: widget hasn't populated Single Line Text value yet");elsealert("GOOD: widget has already populated Single Line Text value: " + g_form.getValue("field_1"));} The widget's client controller trivially sets a value in the Single Line Text variable. In Jakarta that client controller runs before the onLoad catalog client script, so previoous implementations rely on that order. 5) View the Apple iPad 3 catalog item in Service Portal: /sp?id=sc_cat_item&sys_id=060f3afa3731300054b6a3549dbe5d3e This resulted in Jakarta seeing the alert: "GOOD: widget has already populated Single Line Text value". Since London the alert shows instead: "BAD: widget hasn't populated Single Line Text value yet".WorkaroundThis is expected behavior and by design since London for a client controller script on a Macro variable. As a workaround, wrap the catalog client scripts in a setTimeout function, so that the client scripts will run after all other scripts. For example: // Before function onLoad() { console.log('Running onLoad script'); <<Put script here>>} // After function onLoad() { setTimeout(function() { console.log('Running onLoad script'); <<Put script here>> }, 0); } Related Problem: PRB1317174