Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

must check/mark checkboxes in forms before sending them


Dor Reznik

Question

so i want to have users to agree on two things (in checkboxes) before they can submit a form to me.(just like you cant proceed without agreeing the term and conditions on some websites/services)

how would i do that?is there a way in javascript to check by the ID of the checboxes if they are checked or not (true/false), and if they arent checked - and try to submit the form -> they will get a pop-up saying they must check the inboxes before submitting the form?thanks

Edited by Dor Reznik
Initial Revision
Link to comment
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

If you add a checkbox field and set it to required, the form cannot be submitted until it is checked.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 0

Add them as separate fields.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment
  • 0
On 9/19/2019 at 3:39 PM, Dor Reznik said:

thanks its a nice idea, i did it for now, however it is still a bad workout, since its required it adds a '*' to the title which doesnt exist on the second one... i wish it could be built in option, sounds fairly simple to do

I agree.  I'm dealing with the same issue now.  A checkbox-to-proceed field should never have more than one checkbox and I don't know how I am going to fix this.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...