You should be able to use Data Bindings panel to get a cond1 && cond2 type argument. Problem is that my panel remains empty, niks, nada. @George may be able to throw light on the problem.
so I had to ensure that the ‘ID’ of the form group “input1_group” was included when referencing the checkbox. And I was able to separate conditions by “&&”.
The one thing that doesn’t work is when both “PDF files” and “Word files” are checked I get a blank result. Can anyone suggest what I can do to get this to work? I would like it to show both PDF and Word files.
Your filter only includes && conditions and not || conditions so you are not handling the OR condition for pdf and doc files to appear when both are selected.
A file can’t be a pdf and a doc at the same time ergo you are not getting results.
Hi Jon, most of the files are paired as PDF and DOCX files so you do get plenty of pairs like this
abc123.pdf
abc123.docx
These are the main file types, but there are the odd files with a different file extension such as
.doc (and .docx) which are both covered by “extension.contains('doc')”
.png, .jpg and .svg - graphic files
.txt, .xml, .xls, .xslx - document files
So the common filter combinations required are
All files
All PDF files
All Word files (.doc and .docx)
All PDF and Word files together
I agree that there is a way of doing it but I can’t get my head around it. I’ll keep trying
What I mean is that the same file can’t be a pdf and a docx at the same time. It is either one or the other. And you are evaluating if an item in your list is a pdf and a doc at the same time.
Edit: or not. I don’t have my laptop so I can’t check.
I also did this to show myself that I had 4 combinations to put into a nested ternary operation. I did it by hand as I find the picker too complex for something like this
filter_pdf.checked n y y n
filter_doc.checked n n y y