Change the value of a field in a subform string
Posted: Tue Jun 30, 2020 3:51 pm
How to change the value of a field in a subform line using the js button from the main form, knowing the line number and field number?
Code: Select all
var row = 3;
$('#your_subform_id' + nuPad(row) + 'your_field_id').val('hello').change();
This does not work.kev1n wrote:Code: Select all
var row = 3; $('#your_subform_id' + nuPad(row) + 'your_field_id').val('hello').change();
Code: Select all
function zapoln_is_ves(event) {
for (var i = 0; i <r.length-1; i ++) {
nuAddRow('sub_hodki');
$('#sub_hodki' + nuPad(i) + 'hod_kol').val('10').change();
}
}