Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi Satria,
use below code, it works for me (you need to add Custom HTML in grid form and change naming for fields.
BR,
Sylwester
<script type="text/javascript"> //script which is populating data from parent table $(document).ready(function(){ var mainFormField = "parent_field"; var fieldId = "grid_field"; //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>
Like it ...
same issue with me
Hi Sylwester Nowak,
Maybe you can try this Javascript in the form grid's form:
<script>
$(document).ready(function(){
....
var ParentValue = $('[name$=ParentFieldId]', window.parent.document).val();
....
</script>
Hi Experts,
I need to populate data from one field in parent Form to second field in Grid Form form as shown below.
Using hash variable #form.tableName.fieldId# is not an option as parent Form data is not saved yet, so I'm not getting value before "save".
Do you have any idea how to fix this issue? I was also trying to use below CustomHTML code but without success.