Page 1 of 1

Set value of popup based on main form

Posted: Sun Aug 03, 2025 12:49 pm
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() || '');

Re: Set value of popup based on main form

Posted: Sun Aug 03, 2025 1:01 pm
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() || '');