fbpx
  1. Home
  2. Knowledge Base
  3. SmartTags™
  4. Form SmartTags™
  5. Form Field SmartTag™ (MM_Form_Field) – 1clickPurchase form

Form Field SmartTag™ (MM_Form_Field) – 1clickPurchase form

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.
shippingAddressCollects the user's shipping addressinputhidden
shippingCityCollects the user's shipping cityinputhidden
shippingStateCollects the user's shipping stateinputhidden
shippingZipCodeCollects the user's shipping zip codeinputhidden
shippingCountryCollects the user's shipping countryinputhidden
shippingMethodCollects shipping method the user wants to useinputhidden
couponCodeCollects the coupon code the user wants to apply to the orderinput
Was this article helpful?

Related Articles

Can’t find the answer you’re looking for?

Reach out to our Customer Success Team
Contact us!