This tag is used in conjunction with the MM_Form tag. It outputs form fields that the user can interact with to enter in data.
Attributes
Available field types and other attributes will vary based on the parent form type. This article deals with the attributes and usage examples for the 1clickPurchase form type.
1clickPurchase
type
(optional) – Indicates the type of form field to create. Acceptable values are input, hidden or custom. The default value is ‘input'.input
– Form fields of type ‘input' output a standard HTML form element that the user can interact with to enter in information. Based on the value ‘name' attribute MemberMouse will render the appropriate HTML form element. For example, a dropdown will be rendered for selecting a Country and an input field will be rendered for entering in a coupon code. The ‘name' attribute is required for input form fields.name
(conditional based on field type) – This field is required for ‘input' field type. It indicates what data is being collected in the field. Below is a table of acceptable values.
shippingAddress | Collects the user's shipping address | input , hidden |
shippingCity | Collects the user's shipping city | input , hidden |
shippingState | Collects the user's shipping state | input , hidden |
shippingZipCode | Collects the user's shipping zip code | input , hidden |
shippingCountry | Collects the user's shipping country | input , hidden |
shippingMethod | Collects shipping method the user wants to use | input , hidden |
couponCode | Collects the coupon code the user wants to apply to the order | input |