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.
| Valor | Descripción |
nombre de usuario | Collects the member’s username |
contraseña | Collects the member’s password |
rememberMe | Outputs 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">

