A user needed to add a mandatory privacy policy checkbox to the Shopify Dawn theme’s customer registration page. The initial implementation allowed account creation without checking the box.
Solution Provided:
Another user shared updated code that adds a required attribute to the checkbox input
The solution includes adding disabled to the submit button, which only becomes enabled when the checkbox is checked
This prevents form submission until users accept the privacy policy
Follow-up Questions:
One user asked how to customize the checkbox’s shape and color (directed to create a separate community post)
Another user asked which file should contain this code (question remains unanswered)
Technical Details:
The code modification involves HTML form elements within the Dawn theme’s registration template, specifically adding checkbox validation and button state management through the required and disabled attributes.
Summarized with AI on November 15.
AI used: claude-sonnet-4-5-20250929.
I am trying to add a mandatory checkbox to my customer registration page. I have managed to create a checkbox linking to the privacy policies, but I can create a new account also without ticking the box. Anybody know how to fix this and also give the user notice that the box needs to ticked?
I have inserted the code for the box below the code for the field for the password.