gppa_missing_filter_text

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Change the “Fill Out Other Fields” Text

Description

Filter the default choice label for choice-based fields that are dynamically populated and depend on another field that’s not filled out.

Usage

Filter the missing filter choice label for all fields.

add_filter( 'gppa_missing_filter_text', 'my_custom_function' );

Parameters

  • value string

    Default: – Fill Out Other Fields –

    Choice text.

  • $field GF_Field

    Current field.

Since

This filter is available since GP Populate Anything 1.0.

Examples

Change the “Fill Out Other Fields” Text

<?php
/**
 * Gravity Perks // Populate Anything // Change "Fill Out Other Fields" Text
 * https://gravitywiz.com/documentation/gravity-forms-populate-anything/
 */
add_filter( 'gppa_missing_filter_text', function( $value, $field ) {
	if ( $field->id == 4 ) {
		$value = 'Use Search Field Above to Get Results';
	}

	return $value;
}, 10, 2 );