1. Startseite
  2. Wissensdatenbank
  3. SmartTags™.
  4. Formular SmartTags™
  5. Formularfeld SmartTag™ (MM_Form_Field) - benutzerdefiniertes Formular

Formularfeld SmartTag™ (MM_Form_Field) - benutzerdefiniertes Formular

Dieses Tag wird in Verbindung mit dem Tag MM_Form verwendet. Es gibt Formularfelder aus, mit denen der Benutzer interagieren kann, um Daten einzugeben.

Attribute

Die verfügbaren Feldtypen und anderen Attribute hängen vom übergeordneten Formulartyp ab. Dieser Artikel befasst sich mit den Attributen und Anwendungsbeispielen für den benutzerdefinierten Formulartyp.

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

  • benutzerdefinierte – 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.

  • benutzerdefiniert-versteckt – 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.

  • Klasse (Bedingt durch den Feldtyp) – This field is optional for ‘custom’ fields. It indicates the CSS class that should be used for the field.

  • id (Bedingt durch den Feldtyp) – This field is required for ‘custom’ and ‘custom-hidden’ fields. It specifies the ID of the custom field to collect data for.

  • isRequired (Bedingt durch den Feldtyp) – 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’.
War dieser Artikel hilfreich?

Verwandte Artikel

Sie können die gesuchte Antwort nicht finden?

Wenden Sie sich an unser Customer Success Team
Kontaktieren Sie uns!