1. Accueil
  2. Base de connaissances
  3. SmartTags™
  4. Formulaire SmartTags™
  5. Form Field SmartTag™ (MM_Form_Field) - formulaire personnalisé

Form Field SmartTag™ (MM_Form_Field) - formulaire personnalisé

Cette balise est utilisée conjointement avec la balise MM_Form. Elle produit des champs de formulaire avec lesquels l'utilisateur peut interagir pour saisir des données.

Attributs

Les types de champs disponibles et les autres attributs varient en fonction du type de formulaire parent. Cet article traite des attributs et des exemples d'utilisation du type de formulaire personnalisé.

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

  • sur mesure – 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.

  • personnalisé-caché – 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.

  • classe (conditionnel basé sur le type de champ) – This field is optional for ‘custom’ fields. It indicates the CSS class that should be used for the field.

  • id (conditionnel basé sur le type de champ) – This field is required for ‘custom’ and ‘custom-hidden’ fields. It specifies the ID of the custom field to collect data for.

  • isRequired (conditionnel basé sur le type de champ) – 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’.
Cet article a-t-il été utile ?

Articles connexes

Vous ne trouvez pas la réponse que vous cherchez ?

Contactez notre équipe chargée de la réussite des clients
Contactez nous !