{"id":1319902,"date":"2017-07-12T01:11:55","date_gmt":"2017-07-12T08:11:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/"},"modified":"2017-07-12T01:11:55","modified_gmt":"2017-07-12T08:11:55","slug":"multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/","title":{"rendered":"Multiple ticket &#8211; Meta fields in the ticket form &#8211; Bug with for and id"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I\u2019m using Events Tickets Plus with Woocommerce and I have an issue with the meta fields in the ticket form :<\/p>\n<p>The problem appears when a costumer want to order for more than one attendee.<br \/>\nFor example, the first one has a meta who looks like :<\/p>\n<pre><code>&lt;div class=&quot;tribe-tickets-meta tribe-tickets-meta-text tribe-tickets-meta-required&quot;&gt;\n\t&lt;label for=&quot;tribe-tickets-meta_nom&quot;&gt;Nom&lt;\/label&gt;\n\t&lt;input type=&quot;text&quot; id=&quot;tribe-tickets-meta_nom&quot; class=&quot;ticket-meta&quot; name=&quot;tribe-tickets-meta[1825][1][nom]&quot; value=&quot;&quot; required=&quot;&quot;&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>So the second one has the same meta who looks like :<\/p>\n<pre><code>&lt;div class=&quot;tribe-tickets-meta tribe-tickets-meta-text tribe-tickets-meta-required&quot;&gt;\n\t&lt;label for=&quot;tribe-tickets-meta_nom&quot;&gt;Nom&lt;\/label&gt;\n\t&lt;input type=&quot;text&quot; id=&quot;tribe-tickets-meta_nom&quot; class=&quot;ticket-meta&quot; name=&quot;tribe-tickets-meta[1825][2][nom]&quot; value=&quot;&quot; required=&quot;&quot;&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>And here you can see my problem : both of the labels have the same attribute &#8220;for&#8221; and both of the inputs have the same attribute &#8220;id&#8221;.<br \/>\nSo, when I click on the second label, I go to the first input.<br \/>\nIn the code, I can&#8217;t rewrite this because, in the views\/meta.php, the fields are printed like this : <\/p>\n<pre><code>foreach ( $meta_fields as $field ) {\n\techo $field-&gt;render();\n}<\/code><\/pre>\n<p>Thanks for the help !<\/p>\n","protected":false},"template":"","class_list":["post-1319902","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Multiple ticket - Meta fields in the ticket form - Bug with for and id -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multiple ticket - Meta fields in the ticket form - Bug with for and id -\" \/>\n<meta property=\"og:description\" content=\"Hi, I\u2019m using Events Tickets Plus with Woocommerce and I have an issue with the meta fields in the ticket form : The problem appears when a costumer want to order for more than one attendee. For example, the first one has a meta who looks like : &lt;div class=&quot;tribe-tickets-meta tribe-tickets-meta-text tribe-tickets-meta-required&quot;&gt; &lt;label for=&quot;tribe-tickets-meta_nom&quot;&gt;Nom&lt;\/label&gt; &lt;input [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/\",\"name\":\"Multiple ticket - Meta fields in the ticket form - Bug with for and id -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-07-12T08:11:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Multiple ticket &#8211; Meta fields in the ticket form &#8211; Bug with for and id\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Multiple ticket - Meta fields in the ticket form - Bug with for and id -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/","og_locale":"en_US","og_type":"article","og_title":"Multiple ticket - Meta fields in the ticket form - Bug with for and id -","og_description":"Hi, I\u2019m using Events Tickets Plus with Woocommerce and I have an issue with the meta fields in the ticket form : The problem appears when a costumer want to order for more than one attendee. For example, the first one has a meta who looks like : &lt;div class=&quot;tribe-tickets-meta tribe-tickets-meta-text tribe-tickets-meta-required&quot;&gt; &lt;label for=&quot;tribe-tickets-meta_nom&quot;&gt;Nom&lt;\/label&gt; &lt;input [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/","name":"Multiple ticket - Meta fields in the ticket form - Bug with for and id -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-07-12T08:11:55+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/multiple-ticket-meta-fields-in-the-ticket-form-bug-with-for-and-id\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Multiple ticket &#8211; Meta fields in the ticket form &#8211; Bug with for and id"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1319902","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1319902\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1319902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}