Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums 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: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 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