1. Inicio
  2. Base de conocimientos
  3. SmartTags™ (etiquetas inteligentes)
  4. Formulario SmartTags™
  5. Form Field SmartTag™ (MM_Form_Field) - Formulario de inicio de sesión

Form Field SmartTag™ (MM_Form_Field) - Formulario de inicio de sesión

Esta etiqueta se utiliza junto con la etiqueta MM_Form. Genera campos de formulario con los que el usuario puede interactuar para introducir datos.

Atributos

Los tipos de campo disponibles y otros atributos variarán en función del tipo de formulario principal. Este artículo trata de los atributos y ejemplos de uso para el tipo de formulario de inicio de sesión.

inicio de sesión
  • tipo (opcional) – Indicates the type of form field to create. ‘input’ is the only acceptable value and is also the default value. 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.

  • nombre - Indica qué datos se están recogiendo en el campo. A continuación se muestra una tabla de valores aceptables.
ValorDescripción
nombre de usuarioCollects the member’s username
contraseñaCollects the member’s password
rememberMeOutputs a checkbox allowing the member to specify whether they want the site to remember them so they don’t have to login in again then next time they come back.
  • etiqueta (opcional) – This field is optional when the field ‘name’ is set to ‘rememberMe’. It specifies the label to output next to the remember me checkbox. The default value is ‘Remember Me’.

  • customAttributes (condicional en función del tipo de campo[MM2.4.1+] – This field is optional for ‘input’ fields. This attribute can be used to add additional HTML attributes to the HTML input field generated by MemberMouse. Whatever is set in this attribute will be added to the HTML verbatim. For example, if you do the following:
[MM_Form_Field name='nombre_usuario' customAttributes='placeholder="Su nombre de usuario"']

Se generará el siguiente HTML:

<input type="text" id="log" name="log" class="mm-field" placeholder="Your User Name">
¿Le ha resultado útil este artículo?

Artículos relacionados

¿No encuentra la respuesta que busca?

Póngase en contacto con nuestro equipo de atención al cliente
Póngase en contacto con nosotros