How to add a privacy policy checkbox button in contact page on Dawn theme?

Solved

How to add a privacy policy checkbox button in contact page on Dawn theme?

MShahinStore
Visitor
1 0 0

In willing to make customers feel secured, and to overcome any future problems with customers issues I need to add a Privacy Policy checkbox button in contact page.

Accepted Solution (1)

chintannyalwani
Shopify Partner
17 4 3

This is an accepted solution.

Hello @MShahinStore ,

 

Follow the below steps to add the privacy policy checkbox in the contact page 

 

Step1 : go to theme -> edit code

chintannyalwani_2-1719854986199.png

Step 2 : search for the file contact-form.liquid and add the below code above <div class="contact__button"> tag

 

<div class="field">
<input
type="checkbox"
id="ContactForm-concent"
class=""
name="contact[concent]"
required
>
<label for="ContactForm-concent">By submitting the form you agree to our terms and conditions.</label>
</div>

 

Note : Change the label text with th text of your choice

 

Here is the result : 

IMG_20240709_213022.jpg

 

If my assistance was helpful to you, please consider liking and marking it as a solution to facilitate easy access for others.

Thank you

Need help in Theme customization? Chat on WhatsApp.



Store Customization | Feature Enhancement | Shopify Development Service

View solution in original post

Reply 1 (1)

chintannyalwani
Shopify Partner
17 4 3

This is an accepted solution.

Hello @MShahinStore ,

 

Follow the below steps to add the privacy policy checkbox in the contact page 

 

Step1 : go to theme -> edit code

chintannyalwani_2-1719854986199.png

Step 2 : search for the file contact-form.liquid and add the below code above <div class="contact__button"> tag

 

<div class="field">
<input
type="checkbox"
id="ContactForm-concent"
class=""
name="contact[concent]"
required
>
<label for="ContactForm-concent">By submitting the form you agree to our terms and conditions.</label>
</div>

 

Note : Change the label text with th text of your choice

 

Here is the result : 

IMG_20240709_213022.jpg

 

If my assistance was helpful to you, please consider liking and marking it as a solution to facilitate easy access for others.

Thank you

Need help in Theme customization? Chat on WhatsApp.



Store Customization | Feature Enhancement | Shopify Development Service