1. Início
  2. Base de conhecimento
  3. SmartTags™
  4. Formulário SmartTags™
  5. Form Field SmartTag™ (MM_Form_Field) - formulário personalizado

Form Field SmartTag™ (MM_Form_Field) - formulário personalizado

Essa tag é usada em conjunto com a tag MM_Form. Ela gera campos de formulário com os quais o usuário pode interagir para inserir dados.

Atributos

Os tipos de campos disponíveis e outros atributos variam de acordo com o tipo de formulário pai. Este artigo trata dos atributos e exemplos de uso do tipo de formulário personalizado.

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

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

  • oculto personalizado – 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 (condicional com base no tipo de campo) – This field is optional for ‘custom’ fields. It indicates the CSS class that should be used for the field.

  • id (condicional com base no tipo de campo) – This field is required for ‘custom’ and ‘custom-hidden’ fields. It specifies the ID of the custom field to collect data for.

  • isRequired (condicional com base no tipo de campo) – 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’.
Este artigo foi útil?

Artigos relacionados

Não consegue encontrar a resposta que está procurando?

Entre em contato com nossa Equipe de Sucesso do Cliente
Entre em contato conosco!