Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
To populate a value in a popup form opened by Form Grid, with an existing value in the parent form
...
...
在表单表格打开的弹出表单中填充一个值,并在父表单中使用现有的值
在弹出表单中键入以下代码Type the following code in the popup 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> |