# Clone Gravity Form with jQuery not working \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/clone-gravity-form-with-jquery-not-working-resolved/11284>\
**Category:** Get Help\
**Tags:** custom, clone, jquery\
**Created:** [November 27, 2021, 2:25pm UTC](https://community.gravityforms.com/t/clone-gravity-form-with-jquery-not-working-resolved/11284 "2021-11-27T14:25:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![padcreative](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@padcreative](https://community.gravityforms.com/u/padcreative)\
**Post date:** [November 27, 2021, 2:25pm UTC](https://community.gravityforms.com/t/clone-gravity-form-with-jquery-not-working-resolved/11284/1 "2021-11-27T14:25:03Z")

</div>

Hi,

I am attempting to clone a form with jQuery to display in a pop-up. The form shows up just fine. However, clicking field labels to activate checkboxes/radios no longer works, and the submit button also fails. (Note - I’m cloning the element containing the form, so the AJAX iFrame and script tag are also coming along for the ride.)

I suspect this is because some initialise function is not running when I clone the form, or perhaps it’s because the cloned form has the same id as its parent.

Just wondering if anyone can shed any light on this before I write it off and take a different approach?

Thanks for reading 😄

---

<div class="post-metadata">

**Author:** ![padcreative](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@padcreative](https://community.gravityforms.com/u/padcreative)\
**Post date:** [November 28, 2021, 12:37pm UTC](https://community.gravityforms.com/t/clone-gravity-form-with-jquery-not-working-resolved/11284/2 "2021-11-28T12:37:35Z")

</div>

Just incase anyone else encounters this, I have solved the problem by moving the original item in the DOM rather than cloning it.

So

```auto
$("#pop-up").append($("#form").clone());

```

Became

```auto
$("#pop-up").append($("#form"));

```

There’s a bit more logic required to show the form and move it back when the pop-up is closed (previously, I was just removing the whole pop-up from the DOM when closed).

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 29, 2021, 2:05am UTC](https://community.gravityforms.com/t/clone-gravity-form-with-jquery-not-working-resolved/11284/3 "2021-11-29T02:05:00Z")

</div>

Closed on November 29, 2021, 2:05am UTC


