fg_livepopulation_field_types

Description

This filter is executed on the form editor page to determine which field types should display a Live Population field settings tab.

Usage

add_filter( 'fg_livepopulation_field_types', 10, 2 );

Parameters

  • $supported_field_types array

    The field types currently supported by Live Population.

    array(
        // Gravity Forms fields
        'address'                  => array( 'label', 'description', 'value', 'placeholder' ),
        'checkbox'                 => array( 'label', 'description', 'choices' ),
        'date'                     => array( 'label', 'description', 'value', 'placeholder' ),
        'email'                    => array( 'label', 'description', 'value', 'placeholder' ),
        'fileupload'               => array( 'label', 'description' ),
        'hidden'                   => array( 'label', 'value' ),
        'html'                     => array( 'content' ),
        'multiselect'              => array( 'label', 'description', 'choices' ),
        'name'                     => array( 'label', 'description', 'value', 'placeholder' ),
        'number'                   => array( 'label', 'description', 'value', 'placeholder' ),
        'option'                   => array( 'label', 'description', 'value', 'placeholder' ),
        'password'                 => array( 'label', 'description', 'value', 'placeholder' ),
        'phone'                    => array( 'label', 'description', 'value', 'placeholder' ),
        'post_category'            => array( 'label', 'description' ),
        'post_content'             => array( 'label', 'description', 'value', 'placeholder' ),
        'post_custom_field'        => array( 'label', 'description', 'value', 'placeholder' ),
        'post_excerpt'             => array( 'label', 'description', 'value', 'placeholder' ),
        'post_image'               => array( 'label', 'description' ),
        'post_tags'                => array( 'label', 'description' ),
        'post_title'               => array( 'label', 'description', 'value', 'placeholder' ),
        'product'                  => array( 'description' ),
        'quantity'                 => array( 'label', 'description', 'value', 'placeholder' ),
        'radio'                    => array( 'label', 'description', 'choices' ),
        'section'                  => array( 'label', 'description' ),
        'select'                   => array( 'label', 'description', 'value', 'placeholder', 'choices' ),
        'shipping'                 => array( 'label', 'description' ),
        'text'                     => array( 'label', 'description', 'value', 'placeholder' ),
        'textarea'                 => array( 'label', 'description', 'value', 'placeholder' ),
        'time'                     => array( 'label', 'description', 'value', 'placeholder' ),
        'total'                    => array( 'label', 'description' ),
        'username'                 => array( 'label', 'description', 'value', 'placeholder' ),
        'website'                  => array( 'label', 'description', 'value', 'placeholder' ),
    
        // Gravity Flow fields
        'workflow_assignee_select' => array( 'label', 'description', 'value', 'placeholder' ),
        'workflow_discussion'      => array( 'label', 'description', 'value', 'placeholder' ),
        'workflow_role'            => array( 'label', 'description', 'value', 'placeholder' ),
        'workflow_user'            => array( 'label', 'description', 'value', 'placeholder' ),
    )
  • $form array

    The current form being edited.