{"id":1130750,"date":"2016-06-22T19:39:42","date_gmt":"2016-06-23T02:39:42","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/"},"modified":"2016-06-22T19:39:42","modified_gmt":"2016-06-23T02:39:42","slug":"can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/","title":{"rendered":"Can I add a clear button to Date and Location (or at least refresh the results)?"},"content":{"rendered":"<p>Hi Modern Tribe,<\/p>\n<p>It&#8217;s me again! Before I get in to discussing my issue, I&#8217;d like to mention that I know this might sound like a customization. However, I&#8217;m curious if this feature is built in, and if not, if there are other features which could account for it. I&#8217;ve done my research, but I haven&#8217;t found an answer and I&#8217;m not that sharp with jQuery or Ajax&#8230; and this is all jQuery and Ajax.<\/p>\n<p>Onto the issue:<\/p>\n<p>I&#8217;m interested in adding a &#8220;clear&#8221; button next to my date field and location field. What I&#8217;d like it to do is, when clicked, remove the information from the respective field and refresh the results. I&#8217;d also like to know if I can build it so I can clear the date AND time of day, or location AND distance. This feature may already exist in the system, and if not, it&#8217;s probably a simple call to a function.<\/p>\n<p>If there&#8217;s no good answer here, maybe I can create my own. I can make a button which can clear the information, but I don&#8217;t know what to call in order to &#8220;refresh&#8221; the page&#8217;s results. Is there a function I can call which will update the page results and URL information when I click something?<\/p>\n<p>Thanks! Any help will be appreciated. I&#8217;ve been struggling with this for a while, but understanding this better will help me develop more parts of the site I plan to modify.<\/p>\n<p>Thanks!<br \/>\nBrendan<\/p>\n","protected":false},"template":"","class_list":["post-1130750","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>Can I add a clear button to Date and Location (or at least refresh the results)? -<\/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\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can I add a clear button to Date and Location (or at least refresh the results)? -\" \/>\n<meta property=\"og:description\" content=\"Hi Modern Tribe, It&#8217;s me again! Before I get in to discussing my issue, I&#8217;d like to mention that I know this might sound like a customization. However, I&#8217;m curious if this feature is built in, and if not, if there are other features which could account for it. I&#8217;ve done my research, but I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/\" \/>\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\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/\",\"name\":\"Can I add a clear button to Date and Location (or at least refresh the results)? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-23T02:39:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/#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\":\"Filter Bar\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Can I add a clear button to Date and Location (or at least refresh the results)?\"}]},{\"@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":"Can I add a clear button to Date and Location (or at least refresh the results)? -","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\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/","og_locale":"en_US","og_type":"article","og_title":"Can I add a clear button to Date and Location (or at least refresh the results)? -","og_description":"Hi Modern Tribe, It&#8217;s me again! Before I get in to discussing my issue, I&#8217;d like to mention that I know this might sound like a customization. However, I&#8217;m curious if this feature is built in, and if not, if there are other features which could account for it. I&#8217;ve done my research, but I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/","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\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/","name":"Can I add a clear button to Date and Location (or at least refresh the results)? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-23T02:39:42+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/can-i-add-a-clear-button-to-date-and-location-or-at-least-refresh-the-results\/#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":"Filter Bar","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/"},{"@type":"ListItem","position":5,"name":"Can I add a clear button to Date and Location (or at least refresh the results)?"}]},{"@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\/1130750","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\/1130750\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1130750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}