gpnf_disable_new_cancel_confirmation (JS)

  1. Description
  2. Usage
  3. Example
    1. Disable the confirmation prompt
  4. Since

Description

Filter if GPNF should not warn before canceling adding a new entry.

Return “true” here to disable the “Are you sure?” button prompt.

Usage

gform.addFilter('gpnf_disable_new_cancel_confirmation', 'my_custom_function' );

Example

Disable the confirmation prompt

gform.addFilter('gpnf_disable_new_cancel_confirmation', function() {
  return true;
} );

Since

This filter is available since Gravity Forms Nested Forms 1.0-beta-9.24.