Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

📋 Preparation

...

Expand
titleHow can I automatically fill in and hide the newsletter checkbox?

To autofill the checkbox, the following can be added to the JavaScript box of the variant:

document.getElementsByClassName("sqzly-checkbox")[0].setAttribute("checked", "true");

To hide the completed checkbox, the following can be added to the CSS box:

Code Block
{{ cssPrefix }} .sqzly-fields label {

display:none !important;

}

Example JavaScript and CSS box:

...