I don't even know how to explain this... but what I realized is that if I include the form in the template using:
<?php gravity_form(2, false, false); ?>
it will fail to load the jquery ui accordion that wraps it
fwiw, I use:
wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");
to style it and include the javascripts the same way:
wp_enqueue_script("gforms_ui_datepicker", WP_PLUGIN_URL . "/gravityforms/js/jquery-ui/ui.datepicker.js", array("jquery"), "1.3.9", true);
wp_enqueue_script("gforms_datepicker", WP_PLUGIN_URL . "/gravityforms/js/datepicker.js", array("gforms_ui_datepicker"), "1.3.9", true);
wp_enqueue_script("gforms_conditional_logic_lib", WP_PLUGIN_URL . "/gravityforms/js/conditional_logic.js", array("gforms_ui_datepicker"), "1.3.9", true);
but in either case it (with or without those includes) it fails.
However, if I include via shortcode:
[gravityform id=2 name=Contact title=false description=false]
everything is hunky dory.