GetResponse Feed Meta

Introduction

The Feed Meta object for the GetResponse Add-On is an associative array containing the properties which determine how the add-on should process the form submission.

$feed['meta'] = array(
    'feed_name'                               => 'Your Feed Name',
    'feed_condition_conditional_logic'        => true,
    'feed_condition_conditional_logic_object' => array(
        'conditionalLogic' => array(),
    ),
);

Usage

We recommend accessing the $feed meta using the rgar() or rgars() functions, e.g.:

$conditional_logic_enabled = rgars( $feed, 'meta/feedCondition' );

if ( $conditional_logic_enabled ) {
    // Conditional logic is enabled for this feed.
    $logic_rules = rgars( $feed, 'meta/feed_condition_conditional_logic_object/conditionalLogic/rules' );
    foreach ( $logic_rules as $rule ) {
        // Process each conditional logic rule.
        $field_id  = rgar( $rule, 'fieldId' );
        $operator  = rgar( $rule, 'operator' );
        $value     = rgar( $rule, 'value' );
        // Example: Use $field_id, $operator, and $value in your logic.
    }
}

Parameters

ParameterTypeDescription
feed_namestringThe feed name which appears on the add-ons feeds tab.
campaignstringThe ID of the GetResponse campaign this feed will add the contact to.
fields_namestringThe ID of the form field containing the contact name.
fields_emailstringThe ID of the form field containing the contact email.
custom_fieldsarrayA multidimensional array containing the GetResponse custom fields. See Custom Field Properties.
feed_condition_conditional_logicbooleanIs the feed condition (conditional logic) setting enabled. Default is false.
feed_condition_conditional_logic_objectarrayAn associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

Custom Field Properties

array(
    'key'   => 'address_one',
    'value' => '3.1',
)

Each custom field is an associative array containing the following properties:

ParameterTypeDescription
keystringThe GetResponse custom field name. Custom field names can only contain up to 32 lowercase alphanumeric characters and underscores.
valuestringThe ID of the form field or entry meta item containing the value for this custom field.