gpsa_ajax_form_loading_message

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Change the loading message for all forms

Description

Filter to modify the AJAX form loading message.

Usage

add_filter( 'gpsa_ajax_form_loading_message', 'my_custom_function' );

Apply only when on a specific Post.

add_filter( 'gpsa_ajax_form_loading_message_{POST_ID}', 'my_custom_function' );

Parameters

  • message string

    The default loading message.

  • form_id int

    The Gravity Form ID

  • post_id int

    The post ID

  • args array

    Additional args with context for where the form is being loaded.

Since

This filter is available since Gravity Forms Submit to Access 1.0.0.

Examples

Change the loading message for all forms

add_filter( 'gpsa_ajax_form_loading_message', 'modify_loading_message', 10, 4 );

function modify_loading_message( $message, $form_id, $post_id, $args ) {
    return 'Your form is loading, sire 🙇‍♀️';
}