• Resolved imoorey

    (@imoorey)


    Hi Erik,

    I can see the following filter operators: ‘isnot’, ‘not_equal’, ‘greater_than’, ‘less_than’, ‘contains’, ‘starts_with’, ‘ends_with’ but there is an operator for “does not contain” ?

    Case use: I would like to generate a list of users that has not selected one of the options in the checkbox, rather what has been selected.

    • This topic was modified 2 years, 5 months ago by imoorey.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author GravityWP

    (@gravitywp)

    Hi @imoorey

    Could you explain a little bit more what you want to achieve (with an example or a link)?

    You can use ‘isnot’ to get a number of all the users that didn’t select a certain value and use multiple ‘isnot’ filters to specify that.

    Kind regards,
    Erik

    Thread Starter imoorey

    (@imoorey)

    Hi Erik,

    I would like to count the number of documents that has not been approved (with GravityView) and has not been voided. One of the checkbox (field id 83) options is “Voided”. Both label and value are the same.

    This is what I’m using:

    [gravitywp_count formid='75' is_approved='no' filter_operator='isnot' filter_field='83' field_value='Voided']

    Expecting: 4
    Current result is: 41 (as count includes 37 voided documents)

    Thanks in advance!
    Moorey

    • This reply was modified 2 years, 5 months ago by imoorey.
    Plugin Author GravityWP

    (@gravitywp)

    The problem, most likely, is that the checkboxes values are stored as an array. That’s probably why you were asking for an does_not_contain operator. This operator is not supported unfortunately, but you should be able to target the individual check by using filter_field=’83.1′.
    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter operator’ is closed to new replies.