Agree to Terms Form Submit | Community
Skip to main content
May 15, 2014
Solved

Agree to Terms Form Submit

  • May 15, 2014
  • 3 replies
  • 1175 views
How to implement without creating a custom field. Should I just add custom JQuery code or might there be a magento specific way?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Josh_Hill13
For a TOS, then you would want to record their acceptance with a timestamp. So create a custom field "Accepts TOS=T/F" (checkbox) and consider a separate TOS Accepted Timestamp field (string).

Then you can use the API to add the person's acceptance.

3 replies

Matt_Stone2
Level 9
May 15, 2014
Is there a particular reason why you don't want to add a custom field? It might be tricky to insert a field that doesn't actually belong to the form via jQuery and then run validation off of that.
Josh_Hill13
Josh_Hill13Accepted solution
Level 10
May 15, 2014
For a TOS, then you would want to record their acceptance with a timestamp. So create a custom field "Accepts TOS=T/F" (checkbox) and consider a separate TOS Accepted Timestamp field (string).

Then you can use the API to add the person's acceptance.
May 16, 2014
Matt - No particular reason not to use custom variable. To Josh's point, it is a TOS agreement, and on custom app I would normally log the approval and the date, so it does make sense to do it here too, including the time.