WordPress.org

Ready to get started?Download WordPress

Forums

Gravity Forms Directory
[resolved] Display all forms completed by a user? (4 posts)

  1. 39images
    Member
    Posted 1 year ago #

    Hi Zack,

    Is it possible to embed a directory on a page, whereby the user currently logged in can see all the forms they've completed?

    We use GFs to collect user registrations for baseball tournaments, and what we're trying to do is set up a page that says:

    Here are the tournaments you have registered for:

    Ideally, there would be a list of all the forms they've filled out (which is basically the same thing as showing them the tournaments they have registered for). I would be really grateful if you could tell me how to accomplish this, and thank you!

    http://wordpress.org/extend/plugins/gravity-forms-addons/

  2. Zack Katz
    Member
    Plugin Author

    Posted 1 year ago #

    Here's a MySQL query that works. Then for each of the rows, perform $lead = RGFormsModel::get_lead($entry["id"]); on it.

    global $wpdb;
    $entries = $wpdb->query(
    	$wpdb->prepare("SELECT * from {$wpdb->prefix}_rg_lead where <code>created_by</code> = 1")
    );
  3. 39images
    Member
    Posted 1 year ago #

    I'm not too familiar with coding. Could you break it down a bit simpler? :) How would this allow me to embed the user-specific directory on a page?

  4. 39images
    Member
    Posted 1 year ago #

    Could you please tell me where to add the SQL query and what you mean by:

    Then for each of the rows, perform $lead = RGFormsModel::get_lead($entry["id"]); on it. Where do I do that?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.