<script type="text/javascript">
//Here is the Axeptio sdk that you integrate in the footer
var el = document.createElement("script");
el.setAttribute("src", "https://static.axept.io/sdk.js");
el.setAttribute("type", "text/javascript");
el.setAttribute("async", true);
el.setAttribute("data-id", "Data-id_de_votre_projet");
if (document.body !== null) {
document.body.appendChild(el);
//Here is the function to make the consent of your checkbox mandatory
const config = axeptio.getWidgetConfig({
//Name of service "processings" for marketings consents or "contracts" for contracts consents
//identifier is the identifier of the checkbox you want to target: marketing consents or contracts consents
//We'll see later where to find it
identifier: "Token_de_votre_identifier"
config: Object.assign({}, config, {isRequired: true}),
//Name of service "processings" for marketings consents or "contracts" for contracts consents
//Name here the button ID that you want to target
//The one that will be greyed until the consent of the user
node: document.getElementById("ID_of_your_button")
// We'll now create a "Send" button with an ID corresponding to the ID that we targetted before
<input type="text" name="text" />
//Make sure to have the same two IDs
<div id="ID_of_your_button"></div>