I need a datepicker field that can pass a parameter *into* the URL. I can't find the documentation to set up the form required for this.
Is there any documentation that you are following?
I have successfully set up a search results view that filters by a taxonomy category and date (all passed in via querystring). The date that is passed in is used to filter the results by two fields on the type "event from" and "event to" (because events span multiple days)
I've spotted this comment in another support thread that I'd like more information on: https://toolset.com/forums/topic/datepicker-styling/#post-586436
" The Query Filter was set to filter dates greater than or equal to TODAY(), but you should really be responding to a URL parameter instead. This allows you to respond to the changes your user makes in the datepicker field, which get passed into the URL parameter. "
^ this sounds like what I want but I'm not sure how to go about setting it up.
The input form of the search view will be shown in a sidebar widget (displaying a textbox, a category list, and a datepicker field) and then will load the results up like this :
hidden link
or hidden link
But I don't know how to get the controls to a) display and b) post the correct url variables to the querystring
My view has all the query filters set up, as well as the loop and content template. But I'm stuck on knowing what to click on in the filter controls to get the result I want.
I want to have a single datepicker that I can pick up on another results page and make sure that it's with a range of two date fields on my type (I have the query filters working, but not sure of how to get the controls to display and send the info I want)
I need more help than this (but thank you for the link)
How do I add a datepicker filter that I can then use to search two fields? Can you walk me through what I need to do?
The docs only have examples of filtering a particular, single field, I can't get it to work for what I'm trying to achieve (details are in my first post on this thread) but I must be missing something simple.
I just want to add a datepicker field, that will send it's value to the url (somehow?) It must be possible as the other tech support person (Christian Cox) mentioned it in that other thread I linked to.
* I have a type called Event
* It has a field called Event_From
* It has a field called Event_To
This is because an event can span several days.
The most basic type of search I want is for the user to select a date with a single datepicker, and for the search to return events that are happening on that day.
I want the user to be able to select this date from a sidebar widget, and it load up a results page.
(As I haven't been having much luck on this thread, I've been experimenting with view paramters and custom shortcodes to get what I need out of the querystring. but I'd still like an answer to my question as I am sure if I could make you understand what I'm doing there's probably a simple answer!)
If you could provide code suggestions that would be very helpful. Thanks!
What exactly will you be accessing / changing if you have admin access? If you set up a new search etc then that should be OK but I don't want you to change what's currently set up.