Page 1 of 1

Pass variables between forms (frontend)

Posted: Wed Oct 08, 2025 1:58 pm
by Uzlander
Hi community. I think this isn't an issue for many NB devs, but recently i've been struggling with that.
Details: Have 2 distinct forms (conventional 'Contracts' and 'Payments') where the Contract has 'contract_num' among its objects and
a button which opens (popup or new breadcrumb) 'Payments' form. And that Payments in turn must have its 'contract' field auto-filled with the '#contract_num#' if opened via 'Contracts' button (& not editable) and just empty (& editable) otherwise.
So i thought i have done something similar using .parent method in past, but here it seems not working, maybe 'Contracts' not considered a parent for the 'Payments' and its just the context needs to be passed somehow..
What's the standart or recommended ways to share context (pass variables) between forms appwide ?

Re: Pass variables between forms (frontend)

Posted: Thu Oct 09, 2025 2:28 am
by kev1n
As long as “Payments” is opened as a popup, all fields can be accessed from its parent form “Contracts.”
Otherwise, use nuSetProperty() to set a global hash cookie (set the third parameter to true) and retrieve it with nuGetProperty()