gppa_get_input_values

  1. Description
  2. Usage
  3. Parameters
  4. Examples
    1. Populate All Query Results As Comma-delimited List
  5. Since

Description

Filter the value of dynamically populated inputs and fields.

Usage

Apply to all forms.

add_filter( 'gppa_get_input_values', 'my_custom_function' );

Apply to a specific form.

add_filter( 'gppa_get_input_values_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gppa_get_input_values_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • $value string

    Value of field.

  • $field GF_Field

    Current field.

  • $template string

    Parsed template value.

  • $objects array or object

    The objects that the query is pulling from.

Examples

Populate All Query Results As Comma-delimited List

<?php
/**
 * This snippet has evolved! 🦄
 * Find the new version of this snippet here:
 * https://gravitywiz.com/snippet-library/gppa-populate-all-results/
 */

Since

This filter is available since GF Populate Anything 1.0-beta-4.16.