Hello!
I'm using Gravity Forms on a site for a client. I need him to be able to embed forms dynamically in a page template - so he can create a new form, create a new page, and embed his form in the page - but I need to be able to do it using the function call rather than shortcodes.
I'm creating an array for a drop-down in the page admin (using Developers Custom Fields) so the client can select from the Gravity Forms he's created.
I'm then using the function call in a page template, and adding the value of the custom field (as the form id) to the function call.
This works great if I know in advance which form is on which page so I can enqueue the scripts. But if the client creates a new form, creates a new page, and selects his form in the custom drop-down, then the scripts are not enqueued.
So - is there a way to use gravity_form_enqueue_scripts() without specifying the form id?
Thanks!