Jump to content
  • 0
Sign in to follow this  
artdocent

How do you add "Today" to "After Now" when filtering a view?

Question

2 answers to this question

Recommended Posts

  • 0

It's now more complicated.

In a submission data page I allow the user to enter a start date and end date which passes virtual parameters to a second data page and filters the results so the user only sees records that fall within their specified range. And if the start date specified is before today, I would like it to over-ride their input and have the start date as today.

But...the user is not required to enter a date range. In this case, all records that meet other optional criteria are displayed. The kicker is that I want to restrict those records to only those that are from today forward. They shouldn't see records from yesterday or last month.

I suspect I have to use javascript, but I'm a newbie and am having trouble understanding how to use the new date() object.

Help would be greatly appreciated!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...