| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 22:18:41 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_form_duplicated/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=L6GUsYPEuqkoiL9%2BWEZ%2BQL9sIq%2FTyxErt2TsXWnDYU6UWyFvAuYKXeZZCOMM2FtggIEZWpLzU3lTzdV2WbIqD2%2B7K9qxcshTKgKPe66ijrxyaGoU"}]}
cf-ray: 9b4c31f06bc425e0-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 22:18:41 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=kIuXKfF%2BTvm5HZTEmB5FgUcoGu1KkRDgwbKJ%2F5mmFlVElx1ojFRjLjTjHFGb%2F%2FJeZegozI7oXixAoxNs82M7RwCPsDiAk6HntkSGzjxJE9YKPYgk"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4c31f6bdc725e0-BLR
gform_post_form_duplicated - Gravity Forms Documentation
gform_post_form_duplicated
Note: This hook replaces the deprecated “gform_after_duplicate_form” hook.
Description
The “gform_post_form_duplicated” action in Gravity Forms is triggered after a form is duplicated, allowing further actions to be performed. The hook provides the ID of the form duplicated and the ID of the new form created.
Usage
add_action( 'gform_post_form_duplicated', 'my_function', 10, 2 );
Parameters
Examples
function my_function() {
//Do something here
}
add_action( 'gform_post_form_duplicated', 'my_function', 10, 2 );
Source Code
This action hook is located in GFFormsModel::duplicate_form() in forms_model.php.