jQuery not defined – Gravity Forms

Some solutions are given here: JS error on Gravity Forms (Stack Overflow)

If we are embedding gravity form in template files and form is outside wp loop, then we need to call gravity_form_enqueue_scripts( $form_id, $is_ajax ); function to force stylesheets and scripts to load in the header.
Documentation: gravity_form_enqueue_scripts() documentation