gpasc_attach_inline_confirmation_message

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Display Inline Confirmation Above the Form

Description

Filter how the inline confirmation message is attached to the form.

Usage

Apply to all forms.

add_filter( 'gpasc_attach_inline_confirmation_message', 'my_custom_function' );

Apply to a specific form.

add_filter( 'gpasc_attach_inline_confirmation_message_FORMID', 'my_custom_function' );

Parameters

  • attached string

    The complete form markup with the inline confirmation attached. Defaults to null. If null, the inline confirmation will be prepended to the form markup by default.

  • message string

    The inline confirmation message.

  • markup string

    The form markup.

  • form array

    The current form.

Since

This filter is available since Gravity Forms Advanced Save & Continue 1.0.13.

Examples

Display Inline Confirmation Above the Form

<?php
/**
 * Gravity Perks // Advanced Save & Continue // Display Inline Confirmation Above the Form
 * https://gravitywiz.com/documentation/gravity-forms-advanced-save-continue/
 */
add_filter( 'gpasc_attach_inline_confirmation_message', function( $attached, $confirmation_message, $form_markup ) {
	return $confirmation_message . $form_markup;
}, 10, 3 );