PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Programatically adding forms and hooking into password protected pages

  1. I have a unique request from a client and I would like to use Gravity forms for most of the heavy lifting and was hoping someone could give some insight on how to do this.

    I would like the ability to have the user create a password protected page (via gf or wp core) and implement some functionality that would allow this page to also include fields for email, and some other predetermined fields. I would also like to automate this so that when the admin creates a new page with password protection (or checking a custom field in admin) a form would be created with the same name as the page title. Note that the fields will remain exactly the same for all of these forms, programatically using the copy form function or similar would work perfectly for this.

    Does anyone have any recommendations or best practice for implementing this?

    I am also open to looking into plugins for this.

    Thanks in advance for your time.

    JN

    Posted 9 years ago on Friday October 19, 2012 | Permalink
  2. I don't know of a way to programmatically create forms like this. You could look through the Gravity Forms code and copy the functions which are called when saving a new form or duplicating a form and use that.

    Posted 9 years ago on Wednesday October 24, 2012 | Permalink