site: http://www.videocharisma.tv
How am I able to find the source code for a form that I've created so that I can hard code it into a php file?
Thanks!
site: http://www.videocharisma.tv
How am I able to find the source code for a form that I've created so that I can hard code it into a php file?
Thanks!
You just right click and view the page source.. search for the "gform_wrapper" class an everything contained in there is your form.
That said, if you copy the form output itself, you will probably lose some of the functionality, validation, etc. and I'm sure you're not okay with that.
If you want to embed the form directly into a php file/page template, there is a php function call for that.
http://www.gravityhelp.com/documentation/embedding-a-form/
Note: When using a Gravity Form in a sidebar widget or embedding it anywhere using the function call, you need to manually enqueue the scripts and CSS by placing a short script block in your theme's functions.php file.
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);
wp_enqueue_style("gforms_css", WP_PLUGIN_URL . "/gravityforms/css/forms.css");
Without this, the conditional logic scripts, datepicker script, form CSS and other elements needed for the full form functionality aren't loaded.
You can find more information at the URL below
Thank you! Will give this a try...