Activating JS Bridge

The JS Bridge functionality is intended for managing CRM data on a CLM presentation by generating pre-configured JavaScript methods on a slide.

To activate JS Bridge, enable the JS Bridge library in the <head> tag of a slide:

<script type="text/javascript" src="../JSLibrary/js/app.js"></script>

The source code of the JS Bridge library can be downloaded from the static resource of Salesforce. The file name is JsLibrary.zip.

Event of functional readiness of JS Bridge:

To check JS Bridge availability for use it is recommended to perform the entire logic of interaction through addEventListener.

document.addEventListener('WebViewJavascriptBridgeReady', function(event){
    console.log('JS Bridge is ready');
});
``