Skip to content

Commit eeb3ce3

Browse files
dariospacespivurno
andauthored
Create gpnf-open-edit-modal-after-child-duplicate.js (#471)
* Create gpnf-open-edit-modal-after-child-duplicate.js added hook * Update and rename gpnf-open-edit-modal-after-child-duplicate.js to gpnf-open-edit-modal-after-child-entry-is-duplicated.js * Update gpnf-open-edit-modal-after-child-entry-is-duplicated.js Co-authored-by: David Smith <david@gravitywiz.com>
1 parent 8ea5edc commit eeb3ce3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/**
2+
* Gravity Perks // Nested Forms // Open Edit Modal After Child Entry Is Duplicated
3+
* https://gravitywiz.com/documentation/gravity-forms-nested-forms/
4+
*
5+
* Instructions:
6+
*
7+
* 1. Install this snippet with our free Custom JavaScript plugin.
8+
* https://gravitywiz.com/gravity-forms-custom-javascript/
9+
*/
10+
gform.addAction( 'gpnf_post_duplicate_entry', function( entry, data, response ) {
11+
$( 'tr[data-entryId="{0}"]'.format( entry.id ) ).find( '.edit a' ).click();
12+
} );

0 commit comments

Comments
 (0)