Announcement

Collapse
No announcement yet.

adding a mandatory checkbox to checkout pqge

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    adding a mandatory checkbox to checkout pqge

    I'm using SD2013 and need to add a mandatory checkbox to the checkout page which must be validated before proceeding with the purchase.

    For example, adding an "I confirm I am over 18 years old" checkbox.

    How should I go about adding such an item?

    Is it possible to edit the checkout form validation scripts to perform additional "required field" checks?
    thanks

    Greg

    #2
    If you are not using the user defined field you can use it in the Design Text under the Invoice Address and Invoice User Defined by ticking Required and in User Definable change the Current Value text.
    Peblaco

    Comment


      #3
      Thanks Peblaco, I'm almost there.

      The "user defined" field is now appearing below the "confirm email" field and the "current value" text is appearing as the prompt with asterisk.

      I need this to be a checkbox rather than user input text, is the best procedure to simply change the input type to "checkbox" in the checkout page code?

      I'm not being allowed to change the "default value" field. So I'm wondering how I get my own value attached to the checkbox as I can't find the variable in the library.

      Is there somewhere else I should be looking to do this or should I just edit the the page code to remove value="<Actinic:Variable Name="InvoiceUserDefined"/>" then add my own value string?
      thanks

      Greg

      Comment


        #4
        You can use the field above Invoice User Defined called Invoice Moving Check Status then rename the default value field. You might need to change the text prompt which appears in orders / reports. Or use the Settings Business Settings for Terms and Conditions to be Agreed Before Checkout, the text comes from the layout Terms and Conditions Agreed.
        Peblaco

        Comment


          #5
          I reckon option 2 will do the trick.

          Brilliant, thanks for the advice and prompt responses, all very much appreciated!
          thanks

          Greg

          Comment

          Working...
          X