Skip to main content

Custom dialog: Enabling a cookie type by default

Comments

2 comments

  • Spas – vConnect – Community Supporter

    Hi G.Frenken,

    You could simply select which cookie categories to be checked by default from the 'Dialog' tab in the account manager, but this feature is available only for predefined Cookiebot dialog types. 

    However, in case that you are using custom banner then you must specify which cookie category to be selected/pre-checked by default from the template source code. You can achieve this by adding an ID and "checked" attribute on the checkbox input field, for example:

    <input type="checkbox" id="CybotCookiebotDialogBodyLevelButtonPreferences" class="CybotCookiebotDialogBodyLevelButton" checked="checked">

    Please try using checked="checked" instead of just 'checked' attribute on the checkbox input field. 

    Regards,
    Spas

    0
  • Sergey Smirnov

    Hey,

    I am having exactly the same problem, but adding checked="checked" doesn't help.

    Got any ideas on that?

    0

Please sign in to leave a comment.