Using Gravity Forms ‘gform_aweber_field_value’ PHP filter

The gform_aweber_field_value filter allows you to modify a value before it’s sent to AWeber.


To apply the filter to all forms and fields:

add_filter('gform_aweber_field_value', 'your_function_name', 10, 4);

To target a specific form, append the form ID to the hook name:

add_filter('gform_aweber_field_value_10', 'your_function_name', 10, 4);

To target a specific field, append both the form ID and field ID to the hook name:

add_filter('gform_aweber_field_value_10_3', 'your_function_name', 10, 4);


  • $value (string): The value to be modified.
  • $form_id (integer): The ID of the form being processed.
  • $field_id (string): The ID of the field being processed.
  • $entry (Entry Object): The entry currently being processed.

More information

See Gravity Forms Docs: gform_aweber_field_value


Change Signature Value

This example modifies the signature value to send the URL of the signature image:

add_filter('gform_aweber_field_value', 'change_signature_value', 10, 4);

function change_signature_value($value, $form_id, $field_id, $entry) {
    $form = GFAPI::get_form($form_id);
    $field = GFFormsModel::get_field($form, $field_id);

    if (is_object($field) && $field->get_input_type() == 'signature') {
        $value = RGFormsModel::get_upload_url_root() . 'signatures/' . $value;

    return $value;

Place this code in the functions.php file of your active theme.