1
0
-1
4 answers
- 210
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>Add your comment... - 10-1
Like it
...
Add your comment... - 10-1
same issue with me
Add your comment... - 10-1
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>
Add your comment...
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.