How can I change the [#DETAILS#]-value to show/hide after click?


1 comment

  • Hi Marvin,

    You could change toggle the [#DETAILS#]-value from "show details"/"hide details" from the button by using event listener. For that purpose you should use javascript to set the custom texts you'd like to use, wrap them in an event listener attached to CookiebotOnDialogInit. Below example shows how to change the text on the 'Show details' button on a multilevel type dialog.  

    <script type="text/javascript">

    window.addEventListener('CookiebotOnDialogInit', function (e) {
    CookiebotDialog.showDetailsText = 'Expand information';
    CookiebotDialog.hideDetailsText = 'Hide detailed information';
    }, false);


    Of course, you could change the text content of showDetailsText and hideDetailsText to what your preferences are! 
    For more detailed information you could check out this article:


    Comment actions Permalink

Please sign in to leave a comment.