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.
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.
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.
|Collects the user's shipping address|
|Collects the user's shipping city|
|Collects the user's shipping state|
|Collects the user's shipping zip code|
|Collects the user's shipping country|
|Collects shipping method the user wants to use|
|Collects the coupon code the user wants to apply to the order|