{"id":179414,"date":"2014-05-26T20:37:39","date_gmt":"2014-05-27T03:37:39","guid":{"rendered":"https:\/\/tri.be\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/"},"modified":"2014-06-25T12:10:27","modified_gmt":"2014-06-25T19:10:27","slug":"adding-organizer-to-required-field-filter-prevents-it-from-being-saved","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/","title":{"rendered":"Adding &quot;organizer&quot; to required field filter prevents it from being saved"},"content":{"rendered":"<p>[From the developer I am working with, Carole:]<\/p>\n<p>I followed https:\/\/tri.be\/change-required-fields-on-community-event-submission-page\/ and added a filter to specify additional required fields on the community\/add (and edit) page.  When I add &#8216;organizer&#8217; to the array of required fields, changes made to the organizer of an event aren&#8217;t saved.  As near as I can tell, here&#8217;s the basic repro:<\/p>\n<p>1. Add events via the community plugin (I&#8217;m signed in as an admin so they&#8217;re listed under My Events).  Include an organizer (or choose an existing one).<br \/>\n2. Add a filter for tribe_events_community_required_fields that includes &#8216;organizer&#8217;.  I also included &#8216;post_content&#8217; and &#8216;post_title&#8217;<br \/>\n3. Edit an event via the plugin.  Change the organizer to another value.<br \/>\n4. Save the event.<br \/>\n5. When taken to My Events page, click the Edit link for the event you just changed.<br \/>\nOBSERVED RESULTS: The organizer is still the original value,<br \/>\nEXPECTED RESULTS:  The organizer is changed to the value entered in step 3.<br \/>\n6. Remove the filter in step 2 or just remove &#8216;organizer&#8217; from the array<br \/>\n7. Repeat steps 3-5<br \/>\nOBSERVED RESULTS: The organizer has been changed to the new value.<\/p>\n<p>After finding https:\/\/theeventscalendar.com\/support\/forums\/topic\/required-fields-in-community-events\/ and https:\/\/theeventscalendar.com\/support\/forums\/topic\/change-required-fields-on-community-event-submission-page\/, I took a closer look at the tutorial.  While the tutorial sort of warns about using indexes in fields, it doesn&#8217;t warn about using &#8216;venue&#8217; and &#8216;organizer&#8217;.  If no more information can be added about making these fields required, those values should be removed from the list of Possible Field Names to Include, as including them introduces a bug. <\/p>\n<p>Ideally, the tutorial would show, or at least hint, at what&#8217;s needed to make organizer and venue required.  Can I return an array of an array, ie., return array(&#8216;organizer&#8217;, array(&#8216;Organizer&#8217;)) to require the Organizer[Organizer] field?  Upon closer inspection, I see that I&#8217;d still have to account for the id being selected or all the fields having values.  At that point, it seems that JavaScript is probably better than using the filter.  OK, yeah I get why the tutorial stops short of that.<\/p>\n<p>But I still contend that the tutorial implies one should add &#8216;organizer&#8217; in the filter, but doing so results in breaking behavior.  And that needs to be addressed.<\/p>\n","protected":false},"template":"","class_list":["post-179414","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>Adding &quot;organizer&quot; to required field filter prevents it from being saved -<\/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\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding &quot;organizer&quot; to required field filter prevents it from being saved -\" \/>\n<meta property=\"og:description\" content=\"[From the developer I am working with, Carole:] I followed https:\/\/tri.be\/change-required-fields-on-community-event-submission-page\/ and added a filter to specify additional required fields on the community\/add (and edit) page. When I add &#8216;organizer&#8217; to the array of required fields, changes made to the organizer of an event aren&#8217;t saved. As near as I can tell, here&#8217;s the basic [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-25T19:10:27+00:00\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/\",\"name\":\"Adding &quot;organizer&quot; to required field filter prevents it from being saved -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-05-27T03:37:39+00:00\",\"dateModified\":\"2014-06-25T19:10:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Community Events\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Adding &quot;organizer&quot; to required field filter prevents it from being saved\"}]},{\"@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":"Adding &quot;organizer&quot; to required field filter prevents it from being saved -","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\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/","og_locale":"en_US","og_type":"article","og_title":"Adding &quot;organizer&quot; to required field filter prevents it from being saved -","og_description":"[From the developer I am working with, Carole:] I followed https:\/\/tri.be\/change-required-fields-on-community-event-submission-page\/ and added a filter to specify additional required fields on the community\/add (and edit) page. When I add &#8216;organizer&#8217; to the array of required fields, changes made to the organizer of an event aren&#8217;t saved. As near as I can tell, here&#8217;s the basic [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/","article_modified_time":"2014-06-25T19:10:27+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/","name":"Adding &quot;organizer&quot; to required field filter prevents it from being saved -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-05-27T03:37:39+00:00","dateModified":"2014-06-25T19:10:27+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-organizer-to-required-field-filter-prevents-it-from-being-saved\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Community Events","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/community-events\/"},{"@type":"ListItem","position":5,"name":"Adding &quot;organizer&quot; to required field filter prevents it from being saved"}]},{"@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\/179414","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\/179414\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=179414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}