CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 20:10:15 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: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=eDl%2BZWTiiah7efCPxEMg%2BJLK64jWVF%2FveIO0ntl%2F7nyl7zRaxJSfCXgGdFxkMpxyeEfd14azXfvM%2B0F6SFtNFrq0RdSeX%2BZ617lTW4xFdg0Dmlut"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d0fff5fad30bc9-BLR
gform_conditional_logic_values_input - Gravity Forms Documentation
gform_conditional_logic_values_input
Description
The gform_conditional_logic_values_input
JavaScript filter in Gravity Forms allows filtering the input string provided for the conditional logic comparison value.
Usage
gform.addFilter( 'gform_conditional_logic_values_input', function( str, objectType, ruleIndex, selectedFieldId, selectedValue ) {
// do stuff
return str;
} );
Parameters
- str string
String of the HTML input tag. - objectType string
The type of object: page, field, next_button, confirmation, notification. - ruleIndex int
The index of the rule. The first rule is indexed at 0. - selectedFieldId int
The ID of the field chosen for comparison. - selectedValue string
The value used for comparison.
Example
add_action( 'admin_print_scripts', function () {
if ( method_exists( 'GFForms', 'is_gravity_page' ) && GFForms::is_gravity_page() ) { ?>
<script type="text/javascript">
gform.addFilter( 'gform_conditional_logic_values_input', 'set_rule_info' );
function set_rule_info( str, objectType, ruleIndex, selectedFieldId, selectedValue ){
str = str.replace('Enter a value', 'Enter the product name');
return str;
}
</script>
<?php }
} );
Placement
Your code snippet should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 1.7.6.
Source Code
This filter is located in the function GetRuleValues() in gravityforms/form_admin.js