Announcement

Collapse
No announcement yet.

Form OnSubmit in checkout

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

    Form OnSubmit in checkout

    Hi

    I am trying to add some javascript checking in the checkout section.

    Does anyone know how to I would add an onSubmit call to my javascript function. I've looked at the Act_PrimaryCheckout.html file and also at text 2279 but to no avail yet.

    Any help would be much appreciated.

    Thanks in advance

    Trevor

    #2
    Hi Trevor

    If it's just the checkout section that you want to add the onSubmit, make sure that you use a separate overall layout (Primary) template.

    Your onSubmit call needs to be in the <FORM> tag, however, this is generated when the site is updated and replaces the placeholder NEQUOTEVAR:FORMBEGIN found in the Act_Orderxx.html templates. I would suggest commenting out the NQV and hardcoding the <FORM> tag as <FORM METHOD=POST onSubmit="javascript;">

    Ben
    Ben Popplestone
    Ecommerce website software

    Comment

    Working...
    X