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

Form Field SmartTag™ (MM_Form_Field) – custom 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 custom form type.

custom
  • type (optional) – Indicates the type of form field to create. Acceptable values are ‘custom' or ‘custom-hidden'. The default value is ‘custom'.

  • custom – Form fields of type ‘custom' output an HTML form element that the user can interact with to enter in information associated with custom fields you've configured in MemberMouse. The ‘id' attribute is required for custom form fields. The ‘isRequired' attribute is optional.

  • custom-hidden – Form fields of type ‘custom-hidden' output a hidden HTML form element that stores data associated with custom fields you've configured in MemberMouse. The ‘id' attribute is required for custom form fields. The ‘isRequired' attribute is optional. Hidden custom fields are perfect for storing information related to the order that the user doesn't enter.

    For example, you could track the ad name they came from, which keyword they used to find your product, etc. All you need to do is pass a querystring parameter to the page in the following format: ‘cf_{ID}' where {ID} is replaced by the ID of the custom field.

    Here's an example: http://mysite.com/checkout?cf_1=banner-1&cf_2=marketing. In this example, we're passing ‘banner-1' as the value for the custom field with ID 1 and ‘marketing' as the value for the custom field with ID 2.

  • class (conditional based on field type) – This field is optional for ‘custom' fields. It indicates the CSS class that should be used for the field.

  • id (conditional based on field type) – This field is required for ‘custom' and ‘custom-hidden' fields. It specifies the ID of the custom field to collect data for.

  • isRequired (conditional based on field type) – This field is optional for ‘custom' and ‘custom-hidden' fields. It indicates whether the custom field should be required. Acceptable values are ‘true' and ‘false'. The default value is ‘false'.
Was this article helpful?

Related Articles

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

Reach out to our Customer Success Team
Contact us!