secretsupper Posted May 20, 2021 Share Posted May 20, 2021 Site URL: http://www.secretsupper.co Hello! I am trying to see if it is possible to add custom code in two areas of a form block on my site. 1. One of the sections is for zip code | Is it possible to limit the number of characters to 5 to mitigate bad captures? 2. The second is for birth date. Is it possible to not allow the form to be submitted if they are under 21 years of age? The entire page has a third party app injected code for age gating purposes but I am looking to also gate this form entry as well. Thank you! Link to comment
Beyondspace Posted May 20, 2021 Share Posted May 20, 2021 9 minutes ago, secretsupper said: Site URL: http://www.secretsupper.co Hello! I am trying to see if it is possible to add custom code in two areas of a form block on my site. 1. One of the sections is for zip code | Is it possible to limit the number of characters to 5 to mitigate bad captures? 2. The second is for birth date. Is it possible to not allow the form to be submitted if they are under 21 years of age? The entire page has a third party app injected code for age gating purposes but I am looking to also gate this form entry as well. Thank you! The validation can be created using javascript custom code, but it will still be frontend validation and can be broken with a tech guy eventually submit the wrong data. BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment