APM Advanced Customization Examples with Modern Template, v15.1+
Updated Feb 09, 2022
Version 2.0Was this article helpful?
Hello,
Very helpfull thanks.
Just to share with the community the following example that allows you to read a session variable from the "user-logon.js".
In the "standard" customization manner the syntax in the "logon.inc" is:
var plateformOS = "%{session.custom.last.platform}";
In the "modern" way, it is similar you can use in the "user-logon.js" file following:
newDiv.innerHTML = '<img id="os_img" src="%{session.custom.last.platform}" height="30" width="30">';
CCL => same syntax works also in the modern customization