CARVIEW |
Select Language
HTTP/2 301
date: Sun, 12 Oct 2025 10:02:29 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_checkbox_limit_exact_message/
server: cloudflare
x-redirect-by: Yoast SEO Premium
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: strict-origin-when-cross-origin
fastcgi-cache: EXPIRED
strict-transport-security: max-age=31536000; includeSubDomains
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=YpJ3UlE2%2F3eQCbMGsoi76p9gAFwPdWG%2FFwC5dJnbOYpbCMyvT41W3T7eTUkjj81ioR3d9fukCIgo98%2F0yuWpwB4dDKIMWKPEHYgT5iHjS%2B3xPgAO"}]}
cf-ray: 98d5c307fcee75e9-BLR
HTTP/2 200
date: Sun, 12 Oct 2025 10:02:30 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
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: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=ge1HCSNr0LJMn9CyTIdKV38ZECxNYxZW8PYVljg5WJ6kq%2BUTy4kKIMg4u%2By5F5y%2F9spPPuuypoUY19vXLUl4E64esi2Bs5mRhTpJtz3csnJ9USft"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d5c30d4ab175e9-BLR
gform_checkbox_limit_exact_message - Gravity Forms Documentation
gform_checkbox_limit_exact_message
Description
Allows to modify the message displayed when a checkbox is limited to an number of choices.
Usage
add_filter( 'gform_checkbox_limit_exact_message', 'your_function_name', 10, 3 );
Parameters
- $message string
The message to filter. - $number int
The number of choices that must be selected. - $field integer
The field currently being processed.
Examples
Add a custom message to the Exact Limit.
add_filter( 'gform_checkbox_limit_exact_message', 'exact_message', 10, 3 );
function exact_message( $message, $number, $field ) {
return 'You must pick exactly ' . $number;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms 2.9.
Source Code
This filter is located in includes/fields/gf-field-choice.php