Open Form on Duplication — Gravity Forms
I work in Gravity Forms a lot and all in all it has great features that make for really quick and custom form creation but one of the workflow quarks that really bugs me is the flow of duplicating a form. I often work from a couple different ‘Master Forms’ (forms that start out with a little more than a blank slate) and duplicate from them. Unfortunately, after duplicating I’m redirected back to the list of forms, where I have to search for the new form I just created. This is no good. So let’s fix it!
Fortunately, Gravity Forms has a pretty decent system of hooks and filters that allows for easy customization.
Hook into Duplication
First thing we do is actually hook into gravity form’s after duplication action and provide it with the code needed to redirect (I’ve just used a simple js redirect). (This can be done in functions.php or as a separate plugin.)
Create Duplicated Notification
The above works and does exactly what we want it to do but the redirect seems slightly confusing, so we should provide some indication that the duplication worked. We can do this by hooking into the gform_editor_js action.