Jump to content
  • 0
kpcollier

Checkbox/Radio Buttons for Search Field Blank/Not Blank

Question

Hello. 

I am trying to create a new filter for my Search and Report DataPage. In my table, there is a date field "Shipping Confirmation". Right now, I have the search form having 5 different filters you can search from. To filter it even more, I would like a Checkbox or "on/off switch" that is tied to the Shipping Confirmation field. If the box is checked, the report filters records where Shipping Confirmation is not blank, whereas if the box is unchecked, it shows all records. 

I have tried using Virtual Fields as Radio Buttons, but I seem to only be able to narrow it down to specific dates instead of blank/not blank. Any ideas?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

To clear up the question, I am trying to use a Date field as a search filter. I want it to default to show all records, whether or not that Date field is empty or blank. But, if you click the checkbox, it filters the search to only records with that Date field not blank. 

Any help is appreciated. 

Share this post


Link to post
Share on other sites
  • 0

Hi @kpcollier,

I think you can create a Formula field in your table with a case expression to check if the field "Shipping Confirmation" is empty or not.

Here is an example of Formula expression:

CASE
WHEN Len([@field:Shipping_Date])>0 THEN 'YES'
ELSE 'NO'
END

Next, you should use this field in your search criteria and assign "Checkbox" form element. 

You should use the following settings:

0ac66df23500.png

 

Hope this helps.

Regards,

vitalikssssss

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...

×
×
  • Create New...