autofill in iFrame
Posted: Tue Nov 03, 2020 9:24 am
This code works ans sets the new field to (2), why does the $('#stat_MassnID').val(parent.nuForm.getCurrent().record_id).change(); not work if I uncomment it?
if(!nuMainForm() && nuFormType() == 'edit'){
nuHide('MassnStatID');
if (nuIsNewRecord()){
/*
$('#stat_MassnID')
.val(parent.nuForm.getCurrent().record_id)
.change();
*/
$('#stat_MassnID').val(2).change();
}
}
Regards
Paul
if(!nuMainForm() && nuFormType() == 'edit'){
nuHide('MassnStatID');
if (nuIsNewRecord()){
/*
$('#stat_MassnID')
.val(parent.nuForm.getCurrent().record_id)
.change();
*/
$('#stat_MassnID').val(2).change();
}
}
Regards
Paul