diff --git a/experimental/gpnf-populate-parent-form-id-in-child-form.js b/experimental/gpnf-populate-parent-form-id-in-child-form.js deleted file mode 100644 index 96c105b01..000000000 --- a/experimental/gpnf-populate-parent-form-id-in-child-form.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Gravity Perks // Nested Forms // Populate Parent Form ID in Child Form - * https://gravitywiz.com/documentation/gravity-forms-nested-forms/ - */ -gform.addAction( 'gpnf_init_nested_form', function( childFormId, gpnf ) { - // Update "123" to your the ID of your child form. - var targetChildFormId = 123; - // Update "4" to the ID of the child field in which the parent form ID will be populated. - var targetChildFieldId = 4; - if ( childFormId == targetChildFormId ) { - // Delaying setting value so Populate Anything can pick up the change event. - // Internal: HS#32287. - setTimeout( function() { - $( '#input_' + targetChildFormId + '_' + targetChildFieldId ).val( gpnf.formId ).change(); - } ); - } -} );