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.

autofill in iFrame

Questions related to using nuBuilder Forte.
Post Reply
paulkauz
Posts: 30
Joined: Fri Oct 30, 2020 7:08 pm

autofill in iFrame

Unread post by paulkauz »

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 you like nuBuilder, please leave a review on SourceForge
kev1n
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

Unread post by kev1n »

Hi Paul,

Give this a go (Note the spelling: nuFORM instead of nuForm)

Code: Select all

$('#stat_MassnID').val(parent.nuFORM.getCurrent().record_id).change();
paulkauz
Posts: 30
Joined: Fri Oct 30, 2020 7:08 pm

Re: autofill in iFrame

Unread post by paulkauz »

Hi Kevin

Works perfect, thanks a lot for teh quick help.

regards
Paul
If you like nuBuilder, please leave a review on SourceForge
Post Reply