Checkbox for Privacy Policy

3 replies·opened Dec 16, 2020
W
WyzzyDec 16, 2020

Hello guys,

I need add a checkbox in every contact form for the agree of the Privacy Policy. (Like you see in the attach)
Can you give me any details to implement it?

Thank you!

S
SemiColonWebSTAFFDec 17, 2020

Hello,

You can use something like this:

<div class="col-12 form-group">
	<div class="form-check show-error-msg">
		<input class="form-check-input required" type="checkbox" name="template-contactform-agree-terms" value="Yes">
		<label class="form-check-label" for="defaultCheck1">
			Agree to the Terms
		</label>
	</div>
</div>

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

W
WyzzyDec 17, 2020

Hi,

it works great, thanks :)
Where can I change the text for .show-error-msg (THIS FIELD IS REQUIRED)?

S
SemiColonWebSTAFFDec 17, 2020

Hello,

You can simply add the title="Your Custom Error Text" Attribute to the <input> Tag.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard