gplc_excluded_input_selectors (JS)

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Example
    1. Prevent input with class from being enabled/disabled

Description

Filter the input selectors used to exclude inputs from being checked/unchecked.

Usage

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

Parameters

  • excludedInputSelectors array

    Input selectors to exclude from checking/unchecking.

  • fieldId int

    The ID of the field that triggered the event.

  • $elem jQuery

    A jQuery object of the element that triggered the event.

  • gplc object

    The current instance of the GPLimitCheckboxes object.

Since

This filter is available since GP Limit Checkboxes 1.3.11.

Example

Prevent input with class from being enabled/disabled

window.gform.addFilter( 'gplc_excluded_input_selectors', function( selectors ) {
	selectors.push('.gw-disable-duplicates-disabled');
	return selectors;
});