Joget DX Preview Release 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 populate a value in a popup form opened by Form Grid, with an existing value in the parent form

Code:

Type the following code in the popup form:

<script type="text/javascript">
    $(document).ready(function(){
        var mainFormField = "courseName";
        var fieldId = "course";

        //get value from parent form
        var value = $('[name='+mainFormField+']:enabled', window.parent.document).val();

        //store the value to a field
        $('[name='+fieldId+']:enabled').val(value);
    });
</script>
  • No labels