Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Set value of popup based on main form

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
88tc88
Posts: 15
Joined: Tue Mar 04, 2025 10:53 am
Has thanked: 11 times

Set value of popup based on main form

Unread post by 88tc88 »

Dear all,

Hopefully a simple and quick question, but something I have been struggling with for a while now.

I have a main edit form with all the invoicing data. On this edit form I have a run-button which opens a pop-up launch form which displays all the default mail-adresses that are recorderd on the main form.

On the main form I would retreive these mailadresses as follows (which works following console-logging), but I can not seem to find a way to get these values pasted in the three input object on the subform:

Code: Select all

nuSetValue('Aan_object', $('#algemeenmail').val() || '');
nuSetValue('CC_object', $('#factuurmail').val() || '');
nuSetValue('BCC_object', $('#inkoopmail').val() || '');
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4416
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 74 times
Been thanked: 472 times
Contact:

Re: Set value of popup based on main form

Unread post by kev1n »

Hi,

If you want to pass values from the main form into input fields on the pop-up form, use the following code in the pop-up's Custom Code section:

Code: Select all

nuSetValue('Aan_object', parent.$('#algemeenmail').val() || '');
nuSetValue('CC_object', parent.$('#factuurmail').val() || '');
nuSetValue('BCC_object', parent.$('#inkoopmail').val() || '');
Post Reply