Ok, I am curious if GF does this. I have a gravity form in my php code so it shows up on every post that was posted by the registered user (Author).
Its a Lead form. So, how I want it to work is this:
- Registered users logs into wordpress and creates a post and publishes it. The form is already coded in the php file, so when you publish the post the form is already there.
- The front end user goes to the post and fills out form and submits it.
What I want to happen is this:
When the front-end users submits the form, I want the registered user that posted the post that the form is on to be the only one that can see the form in the admin panel that was submitted by the front end user. I don't want all registered users to see the submitted form.
Does GF have a way that this does this. It seems simple but I am not sure. I just want the registered user to be able to see the from info that was submitted in the admin section.
I already created a custom post type for the info to be posted in the Admin section.
Any help. If this is something that GF already does great but it not, here is some code I am trying to see if it would work in Custom Post Type
$key = $wpdb->get_var($wpdb->prepare("SELECT user_activation_key FROM $wpdb->users WHERE user_login = %s AND post_title = post_title", $user_login));
$sql = SELECT * FROM wp_rg_lead_detail ORDER BY lead_id WHERE lead_id = $key
$data = $wpdb->get_results($sql, ARRAY_A);