I'm writing a function to post a url to a logged in user only if they have filled in a form.
what is the best way to check whether a user has filled in the form?
Can i limit them to only filling the form in once?
I'm writing a function to post a url to a logged in user only if they have filled in a form.
what is the best way to check whether a user has filled in the form?
Can i limit them to only filling the form in once?
Hi, fr35ht,
When a user is logged in and submits a form, the entry created stores the id of the user. This is the field created_by in the wp_rg_lead table.
You could write some custom code in the gform_pre_render hook to check the database lead entries for your form to see if one were created by the logged in user. Documentation for that hook can be found at: http://www.gravityhelp.com/documentation/page/Gform_pre_render