I want to create a view filter which hides certain entries

By: Naomi Spirit | Asked: 11/29/2023
ForumsCategory: General questionsI want to create a view filter which hides certain entries
Naomi SpiritNaomi Spirit asked 1 year ago

My checkbox is like this:   Privacy Setting  Private (shown only on your own member page)     I want to only show the entries on a view which do not have this selected:   My filter looks like so:  

Entry creation date           ---- Greater than --- [get param=date_range_start]

AND Entry creation date   ---- Greater than --- [get param=date_range_start]

AND Privacy setting          ---- Is equal to    ---   

But it's showing all the entries for the required date even the ones who have selected private   I have also tried the last filter as  

AND Privacy setting          ---- Is NOT equal to    --- Private (shown only on your own member page)   AND Privacy setting          ---- Is NOT equal to    --- Empty  

I have also tried giving the checkbox a default value of "Not Private" but that doesn't actually seem to write out any value to check on.   Anyone have any ideas?  Seems like this should be super simple?!

1 Answers
Victor Font answered 1 year ago

Do you have a default value set for the checkbox? Formidable does not save values for fields that have not been populated if there's no default value. When you plan to use a field as a view filter, always supply a default value. In the case of a checkbox, I would have used a toggle and set the values to Yes/No with No being the default.

Naomi SpiritNaomi Spirit replied 1 year ago

Yes I tried a default value but when I wrote that out in the view it was empty.

Naomi SpiritNaomi Spirit replied 1 year ago

Ok so I tried a radio button instead (was that what you meant?) and it seems to be working now. Thanks!

Victor Font replied 1 year ago

Not really, but yes. Let me explain. Not really because a toggle field is a Formidable Pro field where you flip a "switch". In reality, a toggle is a fancily disguised radio button. That's why I also said yes. A standard radio button serves the same purpose.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right