Skip to content

Commit

Permalink
gw-validate-that-a-value-exists.php: Fixed an issue with script not…
Browse files Browse the repository at this point in the history
… working with value validation snippet.
  • Loading branch information
saifsultanc authored Jan 7, 2025
1 parent 65044dc commit 1049e8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gravity-forms/gw-validate-that-a-value-exists.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ public function load_form_script( $form, $is_ajax_enabled ) {

// Do not output main script if AJAX is enabled
if ( ! $is_ajax_enabled && $this->is_applicable_form( $form ) && ! self::$is_script_output && ! $this->is_ajax_submission( $form['id'], $is_ajax_enabled ) ) {
$this->output_script();
add_action( 'wp_footer', array( $this, 'output_script' ) );
add_action( 'gform_preview_footer', array( $this, 'output_script' ) );
}

return $form;
Expand Down

0 comments on commit 1049e8e

Please sign in to comment.