Jump to content
  • 0

One From and To field to Filter the two date fields



2 answers to this question

Recommended Posts

  • 0

Hi @SunakoChan,

For you to achieve that you will need to have a separate Search and Report to filter the two fields at once.

You can  follow the instruction bellow:

1. Create your Search form and add two Virtual fields, enable 'Calendar popup' then go to the Advanced tab, and enable the 'On exit: Pass field value as parameter' for both virtual fields then saved your search form.

2. Next, create a Report Data page, choose 'Filter data based on your predefined criteria, then select the two fields you will be using. On the picker, click 'New Criteria' for both fields, and for the 'Criteria 1', choose 'Greater than or Equal' as the comparison type, and then put the parameter name of your Virtual 1 in the 'Value' section. For the 'Criteria 2,' choose 'Less than or equal', for the comparison type, and the parameter name of the Virtual 2 on the 'Value' section.

The example is, if you enter a date from 7/01/21 to 7/31/21, it will show all the results within that range. By only entering a date in the 'from' field, it will only show the dates that are greater than or equal to that date. In contrast, if you only input a date in the 'to' field, it will only display results that are less than or equal to that date.

I hope this helps.

Link to comment
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.

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.

  • Create New...