You are viewing limited content. For full access, please sign in.

Question

Question

WebLink search on Date=Today

asked on February 4, 2014

Is it possible to do a custom WebLink search limiting returns to today's date?  I would like to have a search for the public where they can pull up agendas for future meetings, current date meetings and past meetings, all using the current date in the search terms.  Something like [Date]<Today for past meetings.

 

Thank you.

 

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on February 5, 2014

This is possible, but since the WebLink Search Form Designer currently doesn't support the use of date tokens, the user would have to manually enter in the current date.

 

You can create a custom variable (i.e. called "TimeFrame") using a single select list type for "before", "on", and "after". Next, create another custom variable (i.e. called "Date") and give it the "Date" input type.

 

Now for your search query, just create multiple custom constraints for:

{[template]:[field]<%(Date)} with the condition of TimeFrame is set to value "Before"

{[template]:[field]=%(Date)} with the condition of TimeFrame is set to value "On"

{[template]:[field]>%(Date)} with the condition of TimeFrame is set to value "After"

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.