global.onLoad

Reading Time: 1 minute

It is fired during the loading of the script when the database and other resources are ready. Good for setting field values based on external data, like phone numbers or agent properties. Important: there aren’t any pages loaded this time.

Parameters

none

Returns

none

Example

We want to save the last phone number used by our client to a field.

$().onLoad = function() {
     vcc.setFieldValue('last_phone', vcc.getScriptVariable('global.clientphone'));
};

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.