| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 04:18:56 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_form_actions/
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: HIT
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=Q7F4qqUXETuiNbts1Z5O24ghyvgZEixpv%2B74ankTG4u7EHtyucVBRAuYoHJm35pPzzgaBONWIKdhVFrYrj8x3CEnRs30wK0WzRD5qlRqDuZChV7E"}]}
cf-ray: 9b460449ebb658e1-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 04:18:56 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=cPwHoyeV94c%2BrHCB3pg4Iiy7ihhDdNXex4uk3l7boI2GiQiNvZuIOQFlQVxnQMqo7IeT5npJE1gWFunXFQpla4a1y6dGRGqmtYEDQvwhwl9ulJoP"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b46044eabd858e1-BLR
gform_form_actions - Gravity Forms Documentation
gform_form_actions
Description
Use this filter to add custom form actions which display below the form title in the Form List view.
Usage
add_filter( 'gform_form_actions', 'form_actions', 10, 2 );
Parameters
- $actions array
An associative array containing all of the default form actions (ie Edit, Preview, Notifications, etc.).
array( 'edit' => '<a href="" ... >Edit</a>', 'preview' => '<a href="" ... >Preview</a>', 'entries' => '<a href="" ... >Entries</a>', 'notifications' => '<a href="" ... >Notifications</a>', 'duplicate' => '<a href="" ... >Duplicate</a>', 'delete' => '<a href="" ... >Delete</a>' ); -
$form_id integer
The ID of the field from which the entry value was submitted.
Examples
Add custom action link
This example demonstrates how to add an custom form action.
add_action( 'gform_form_actions', 'add_mergedoc_link', 10, 4 );
function add_mergedoc_link( $actions, $form_id ) {
$actions['mergedoc_settings'] = "<a href="" . get_admin_url() . "admin.php?page=gf_mergedoc&id={$form_id}">" . __( 'MergeDoc', 'gravityformsmergedoc' ) . "</a>";
return $actions;
}
Remove Duplicate action link
This example demonstrates how to remove the default Duplicate action link.
add_action( 'gform_form_actions', 'remove_duplicate_link', 10, 4 );
function remove_duplicate_link( $actions, $form_id ) {
// Remove Duplicate action link
unset ( $actions['duplicate'] );
return $actions;
}
Source Code
This filter is located in GFFormList::form_list_page() in form_list.php