How to insert a mandatory checkbox for newsletter popup?

Created by Aiden Hua, Modified on Thu, 04 Jan 2024 at 10:17 PM by Aiden Hua


How to insert a mandatory checkbox for newsletter popup?


--> Yes, you could do that. Here is the video for it:


Here is the code detail:

<div class="block newsletter ">
<div class="title-popup"><strong>Subscribe to Newsletter!</strong></div>
<div class="content"><form id="newsletter-validate-detail" class="form subscribe" action="" method="post" novalidate="">
<div class="field newsletter">
<div class="control"><label for="newsletter"> <span class="label"> Sign Up for Our Newsletter: </span> <input id="newsletter" name="email" type="email" placeholder="Enter your email address" data-validate="{required:true, 'validate-email':true}"> </label></div>
<div class="field privacy">
<div class="control"><label for="privacy"> <input id="privacy" name="privacy" type="checkbox" value="1" data-validate="{required:true}"> I agree to the <a href="^1^">data privacy policy</a> of this website. </label></div>
<div class="actions"><button class="action subscribe primary" title="Subscribe" type="submit" aria-label="Subscribe"> Send </button></div>


Thank you!

If you have any questions or need further support, please don't hesitate to contact us.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article