Joget DX Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this article, we will learn on how to clone/duplicate entries from one Form Grid to another Form Grid.

In line 5 and 6, change the source and target form grid field IDs accordingly.

Code Block
<p><a class="copy btn">Copy Grid 1 to Grid 2</a></p>
    $(".copy").on("click", function() {
        var grid1 = FormUtil.getField("field1");
        var grid2 = FormUtil.getField("field2");

            var json = $(this).find("textarea").val();

            //remove id
            var obj = JSON.parse(json);
            if ( !== undefined) {
                json = JSON.stringify(obj);

            $(grid2).enterpriseformgrid("addRow", {result: json });