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
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
autofill in iFrame
-
- Posts: 30
- Joined: Fri Oct 30, 2020 7:08 pm
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: autofill in iFrame
Hi Paul,
Give this a go (Note the spelling: nuFORM instead of nuForm)
Give this a go (Note the spelling: nuFORM instead of nuForm)
Code: Select all
$('#stat_MassnID').val(parent.nuFORM.getCurrent().record_id).change();
-
- Posts: 30
- Joined: Fri Oct 30, 2020 7:08 pm
Re: autofill in iFrame
Hi Kevin
Works perfect, thanks a lot for teh quick help.
regards
Paul
Works perfect, thanks a lot for teh quick help.
regards
Paul
If you like nuBuilder, please leave a review on SourceForge