Objective:
...
To populate a
Problem
...
Populate value in a popup form opened by Form Grid, with an existing value in the parent form.
...
Code:
...
Put Type the following code below in the Popup Formpopup form:
| Code Block |
|---|
<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> |