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

Form Field SmartTag™ (MM_Form_Field) - Formulário de login

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 de login.

login
  • 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.

  • nome - Indica quais dados estão sendo coletados no campo. Abaixo está uma tabela de valores aceitáveis.
ValorDescrição
nome de usuárioCollects the member’s username
senhaCollects 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.
  • rótulo (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 com base no 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='username' customAttributes='placeholder="Seu nome de usuário"']

O seguinte HTML será gerado:

<input type="text" id="log" name="log" class="mm-field" placeholder="Your User Name">
Este artigo foi útil?

Artigos relacionados

Conteúdo

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

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