• Resolved christoschiotis

    (@christoschiotis)


    I was wondering if there is possibility to filter the entries, that will be exported in the excel file, based on the value of a field.

    For example: My form is submitted only by my logged in users. One of the form fields is an email field that is populated based on the user submitting the form. Can I filter the entries, so the excel file includes the ones with a specific value (email address in the example)?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Doeke Norg

    (@doekenorg)

    Hi Chris,

    Sure. No problem. In this post I provide an example for filtering for a specific date. But you can see how the filtering works.

    https://www.ads-software.com/support/topic/url-variables/#post-10684492

    Please also note the next post where I mention an error in that code.

    Do you have enough to build your own filter function? Otherwise I’m happy to provide a small example. Let me know!

    Thread Starter christoschiotis

    (@christoschiotis)

    Wow, great example.
    – I must query the current logged in user and pass user_email as the value of the param. This must be placed instead of the $from_date, right?

    – From your example I understand that if the condition is true, does nothing, just exports row, if the condition is false then the magic happens with return false; right?

    Plugin Author Doeke Norg

    (@doekenorg)

    Correct on both counts! ??

    Although you can also just query the current user id. And match it against created_by. Should do the same. Matching ids is easier.

    Thread Starter christoschiotis

    (@christoschiotis)

    Got it!
    Thank you so much for your response!
    best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter entries based on values’ is closed to new replies.