| CARVIEW |
Select Language
HTTP/2 301
date: Mon, 29 Dec 2025 17:49:52 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_preview_form_link/
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=ZbzZDcxojMYTiUMy7DB3hHIyI2KcAAllTOa0PPhH4R9P79069MefsWFTI4LNuj6oGIgvixx4Xt7UKZUw6flyL3aJahIKZfrEsr%2FFwqjl7Zu3tdrl"}]}
cf-ray: 9b5b22ed5d1058e1-BLR
HTTP/2 200
date: Mon, 29 Dec 2025 17:49:53 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: MISS
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=y6eBNPVNqa4nKlJCuWpL2Enrn01FEUtJ%2BpClfe6LqFYB8R3ZknGBOcRQZqZwsCbBgylNYcC08iLGW2fyHTyZKCOj5NXuEg97Cnns9HDFc6eF5cb2"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b5b22f4b80358e1-BLR
gform_preview_form_link - Gravity Forms Documentation
gform_preview_form_link
Description
The gform_preview_form_link filter allows the admin form preview link to be customized.
Usage
The filter which would run for all forms would be used like so:
add_filter( 'gform_preview_form_link', 'your_function_name' );
Parameters
- $preview_link string
The Form preview link HTML.
Examples
1. Change link text
add_filter( 'gform_preview_form_link', function ( $preview_link ) {
return str_replace( esc_html__( 'Preview', 'gravityforms' ), 'Your custom link text here', $preview_link );
} );
Placement
This code should be placed in the functions.php file of your active theme or a custom functions plugin.
Since
This filter was added in Gravity Forms v2.5.
Source Code
This filter is located in GFCommon::get_preview_link() in common.php.