{"id":10948,"date":"2023-10-01T16:25:10","date_gmt":"2023-10-01T23:25:10","guid":{"rendered":"https:\/\/membermouse.com\/?post_type=ht_kb&amp;p=10948"},"modified":"2023-10-01T16:25:10","modified_gmt":"2023-10-01T23:25:10","slug":"champ-de-formulaire-smarttag-mm_form_field-login-form","status":"publish","type":"ht_kb","link":"https:\/\/membermouse.com\/fr\/docs\/form-field-smarttag-mm_form_field-login-form\/","title":{"rendered":"Form Field SmartTag\u2122 (MM_Form_Field) - Formulaire de connexion"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This tag is used in conjunction with the&nbsp;MM_Form&nbsp;tag. It outputs form fields that the user can interact with to enter in data.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Attributes<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Available field types and other attributes will vary based on the parent form type. This article deals with the attributes and usage examples for the login form type.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h6 class=\"wp-block-heading\"><strong>login<\/strong><\/h6>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>type<\/code>&nbsp;(<em>optional<\/em>) &#8211; Indicates the type of form field to create.&nbsp;&#8216;input'&nbsp;is the only acceptable value and is also the default value. Form fields of type&nbsp;&#8216;input'&nbsp;output a standard HTML form element that the user can interact with to enter in information. Based on the value&nbsp;&#8216;name'&nbsp;attribute MemberMouse will render the appropriate HTML form element.<br><br><\/li>\n\n\n\n<li><code>name<\/code>&nbsp;&#8211; Indicates what data is being collected in the field. Below is a table of acceptable values.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>username<\/code><\/td><td>Collects the member's username<\/td><\/tr><tr><td><code>password<\/code><\/td><td>Collects the member's password<\/td><\/tr><tr><td><code>rememberMe<\/code><\/td><td>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.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>label<\/code>&nbsp;(<em>optional<\/em>) &#8211; This field is optional when the field&nbsp;&#8216;name'&nbsp;is set to&nbsp;&#8216;rememberMe'. It specifies the label to output next to the remember me checkbox. The default value is&nbsp;&#8216;Remember Me'.<br><br><\/li>\n\n\n\n<li><code>customAttributes<\/code>&nbsp;(<em>conditional based on field type<\/em>)&nbsp;<em>[MM2.4.1+]<\/em>&nbsp;&#8211; This field is optional for&nbsp;&#8216;input'&nbsp;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:<\/li>\n<\/ul>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;MM_Form_Field name='username' customAttributes='placeholder=\"Your User Name\"']<\/code><\/pre>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The following HTML will be generated:<\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;input type=\"text\" id=\"log\" name=\"log\" class=\"mm-field\" placeholder=\"Your User Name\"&gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Cette balise est utilis\u00e9e conjointement avec la balise MM_Form. Elle produit des champs de formulaire avec lesquels l'utilisateur peut interagir pour saisir des donn\u00e9es. Attributs Les types de champs disponibles et d'autres attributs...<\/p>","protected":false},"author":20918,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_strive_editorial_status":"not-started","_strive_copy_of":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[181],"ht-kb-tag":[],"class_list":["post-10948","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-form-tags"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/ht-kb\/10948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/users\/20918"}],"replies":[{"embeddable":true,"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/comments?post=10948"}],"version-history":[{"count":0,"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/ht-kb\/10948\/revisions"}],"wp:attachment":[{"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/media?parent=10948"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/ht-kb-category?post=10948"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/membermouse.com\/fr\/wp-json\/wp\/v2\/ht-kb-tag?post=10948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}