PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

site documentation needs area for comments. Please!

  1. your documentation would be made much better if you allowed for comments. Similar to how the php website is made.

    For example: on this page http://www.gravityhelp.com/documentation/page/Gravity_form_enqueue_scripts
    much is missing, and there is no way to inform others or the developers that this page is lacking.
    just adding:

    gravity_form_enqueue_scripts(4, true);

    will not work because you need to add it in the init hook, a little more like this:

    function rt_gf_init() {
    	if ( ! is_admin() && function_exists('gravity_form_enqueue_scripts')){
    		gravity_form_enqueue_scripts(1, false);
    	}
    }
    add_action('init', 'rt_gf_init');

    in the functions.php

    but now that I'm writing this here, no one who reads the documentation will get that message. even as I revisit it, i forget how it works. please make you documentation allow comments or wiki style editing.

    thanks,
    Deryk

    Posted 12 years ago on Friday May 13, 2011 | Permalink
  2. sammet
    Member

    Thanks Dwenaus!!!!

    I have been struggling all night to get this working with the help of the documentation. It did not work with the code provided.

    I tried yours above and YES now it is working! Thanks a million! You are absolutely right - the documentation should allow comments! It would save us all a lots of time!

    Just one question - If I need about 50 forms to be "called" in the same way - is this still the best option? Just lining up all 50 ID in a row with coma? With or without spaces? As you see I am a total newcomer to PHP and now you can imagine how much you helped me! Thanks again!

    For example:

    [php]
    function rt_gf_init() {
    	if ( ! is_admin() && function_exists('gravity_form_enqueue_scripts')){
    		gravity_form_enqueue_scripts(1, 2, 3, 4, 5, 6, false);
    	}
    }
    add_action('init', 'rt_gf_init');
    Posted 12 years ago on Tuesday September 20, 2011 | Permalink
  3. What are you doing that requires 50 forms? The enqueue is form specific and you do not pass multiple form id's to it. So no, that would not work the way you have shown in your example. You would have to execute a function call for each one, and 50 forms seems inefficient and would require a lot of function calls.

    If you are doing something that requires so many forms then you are probably going about things the wrong way. Typically you don't need that many forms. The ideal way to use forms is going to be to incorporate dynamic population of some fields so that you can dynamically populate fields based on post data or passing data to the form and then use a single form for multiple purposes.

    Posted 12 years ago on Tuesday September 20, 2011 | Permalink