gravity_form_enqueue_scripts

The Gravity Forms gravity form enqueue scripts function.

Description

gravity_form_enqueue_scripts( $form_id, (bool) $is_ajax = false ); 

Parameters (2)

0. $form_id
The form id.
1. $is_ajax — Optional. (bool) => false
The is ajax.

Usage

  1. if ( !function_exists( 'gravity_form_enqueue_scripts' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'gravity-forms/gravityforms.php'; 
  3.  
  4. // The form id. 
  5. $form_id = null; 
  6.  
  7. // The is ajax. 
  8. $is_ajax = false; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gravity_form_enqueue_scripts($form_id, $is_ajax); 
  12.  

Defined (1)

The function is defined in the following location(s).

/gravityforms.php  
  1. function gravity_form_enqueue_scripts( $form_id, $is_ajax = false ) { 
  2. GFForms::enqueue_form_scripts( $form_id, $is_ajax );