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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
autofill in iFrame
-
- Posts: 30
- Joined: Fri Oct 30, 2020 7:08 pm
-
- nuBuilder Team
- Posts: 4566
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 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