{"id":21382413,"url":"https://github.com/tyxla/gravity-forms-multiple-form-instances","last_synced_at":"2025-08-20T06:33:33.187Z","repository":{"id":22502396,"uuid":"25842009","full_name":"tyxla/Gravity-Forms-Multiple-Form-Instances","owner":"tyxla","description":"Allows multiple instances of the same form to be run on a single page when using AJAX.","archived":false,"fork":false,"pushed_at":"2024-07-09T09:20:01.000Z","size":61,"stargazers_count":37,"open_issues_count":18,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-16T21:55:48.091Z","etag":null,"topics":["gravity-forms","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tyxla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-27T22:23:45.000Z","updated_at":"2024-10-08T14:41:04.000Z","dependencies_parsed_at":"2024-11-12T05:32:18.406Z","dependency_job_id":"b5610777-7c08-4d8a-9e10-36212f6d62c8","html_url":"https://github.com/tyxla/Gravity-Forms-Multiple-Form-Instances","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyxla%2FGravity-Forms-Multiple-Form-Instances","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyxla%2FGravity-Forms-Multiple-Form-Instances/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyxla%2FGravity-Forms-Multiple-Form-Instances/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tyxla%2FGravity-Forms-Multiple-Form-Instances/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tyxla","download_url":"https://codeload.github.com/tyxla/Gravity-Forms-Multiple-Form-Instances/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230400616,"owners_count":18219831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gravity-forms","wordpress"],"created_at":"2024-11-22T10:59:18.189Z","updated_at":"2024-12-19T08:09:03.837Z","avatar_url":"https://github.com/tyxla.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gravity Forms: Multiple Form Instances\n\n[![Build Status](https://travis-ci.org/tyxla/Gravity-Forms-Multiple-Form-Instances.svg?branch=master)](https://travis-ci.org/tyxla/Gravity-Forms-Multiple-Form-Instances) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/tyxla/Gravity-Forms-Multiple-Form-Instances/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/tyxla/Gravity-Forms-Multiple-Form-Instances/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/tyxla/Gravity-Forms-Multiple-Form-Instances/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/tyxla/Gravity-Forms-Multiple-Form-Instances/?branch=master)\n\n-----\n\n#### About\n\n**Gravity Forms: Multiple Form Instances** is a small plugin for WordPress.\n\nUsed in conjunction with the awesome [Gravity Forms](http://www.gravityforms.com/) plugin.\n\nAllows multiple instances of the same form to be displayed on a single page when using AJAX.\n\n-----\n\n#### Installation \u0026 Configuration\n\nThis plugin does not need any customization. \n\nSimply install and activate it, and it will do its magic with your Gravity Forms.\n\n-----\n\n#### How It Works\n\nIn order for the magic to work, various occurences of the form ID are replaced with a random ID when rendering the form. This allows for multiple instances of the same form to be submitted without having the issue of submitting form B when submitting form A. \n\nIf a form has already been submitted, the submitted random ID will be preserved and used for the next submissions as well, otherwise a new unique ID is generated.\n\n-----\n\n#### Customization (actions \u0026 filters)\n\nThe plugin uses the default `gform_get_form_filter` Gravity Forms filter for performing the replacement.\n\nAdditionally, the plugin offers the following actions \u0026 filters:\n\n##### gform\\_multiple\\_instances\\_strings\n\n**$strings**   *(array)*. An array of find =\u003e replace pairs. Occurences of \"key\" will be replaced with the corresponding \"value\".\n\n**$form_id**   *(int)*.   The original form id.\n\n**$random_id** *(int)*.   The new, randomly generated form id.\n\nThis filter allows you to modify the default strings that will be replaced. The keys are the original strings, and the corresponding values are the strings that keys will be replaced with.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyxla%2Fgravity-forms-multiple-form-instances","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyxla%2Fgravity-forms-multiple-form-instances","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyxla%2Fgravity-forms-multiple-form-instances/lists"}