Joget DX Beta Available for Download

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

Skip to end of metadata
Go to start of metadata
Objective:

To delete all the rows that have been added to the Form Grid when a field value is changed

Code:
<script>
$(document).ready(function(){
    var selectField = "field1";
    var formGrid = "field2";

    //when select box value is changed
    $("[name="+selectField+"]:enabled").change(function(){
        //remove all data from form grid
        $("[name="+formGrid+"]").find("table tr.grid-row").remove();
    });
});
</script>
  • No labels