• Resolved rubila69

    (@rubila69)


    Hello.

    Can you please tell how to use filter value to show currently login in user ID.

    We have code [gravitywp_count formid=’5′ filter_field=’1′ filter_value='{user_ID}’]

    In field 1 we have user of website and we need to filter that value of this field is current user.

Viewing 1 replies (of 1 total)
  • Plugin Author GravityWP

    (@gravitywp)

    Hi @rubila69,

    for the created_by filter there is an option to use ‘current’ as value, this will count only the entries that are created by the current logged-in user.

    This is currently not possible for the filter_value within the current version, but there are workaround: If you want to use the shortcode with a filter on user id in Post Content, you can use the Gravity Forms Post Content Merge Tags Perk from GravityWiz. This makes it possible to use Merge Tags inside Post Content on your site. Your shortcode would then look like this:

    [gravitywp_count formid='5' filter_field='1' filter_value='{user:ID}']

    But this only works when you install the perk. Other alternatives are to use the shortcode inside GravityView, Gravity Forms Notifications or Confirmations. Those places also allow the use of Merge Tags within the shortcode.

    Hope this helps you further!

Viewing 1 replies (of 1 total)
  • The topic ‘Filter Value ID’ is closed to new replies.