Script for validating online order forms
You can achieve a great deal of functionality and customization without scripting.And you can set most of the important property values of your form objects at design time by using Designer's palettes.
This script creates a new line item in the purchase order each time the button is clicked./** * The CSS shown here will not be introduced in the Quickstart guide, but shows * how you can use CSS to style your Element's container. When using an Apple Pay-enabled browser, your customer will see the button on the left below.When using a browser that supports the Payment Request API, they’ll see the button on the right below.Note that for demonstration purposes, these are just images, not live demos.You can read more about browser support in the Payment Request Button Quickstart. You can style Elements to match the look and feel of your site, providing a seamless checkout experience for your customers.