Welcome to the nuBuilder Forums!

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

Pass values to other form

Questions related to using nuBuilder Forte.
Post Reply
Giu
Posts: 87
Joined: Sat Jan 25, 2014 11:01 am
Has thanked: 9 times

Pass values to other form

Unread post by Giu »

Hi again,

I'm trying to pass a value to another form, and I don't have clear why is not working (probably because I'm not doing correctly).

I have an input button with this onclick code.

Code: Select all

let reto_id = nuGetProperty('record_id');
nuSetProperty('reto_id', reto_id, 1); //tried with global scope and without it
nuForm('6644927de3c6f5e',-1,'','', '0' );
Idea is to pass the record_id of this record to other form to use it in some code there. As far as I understand, to pass values to other forms you have to convert it into a hash cookie with setproperty, but value "don't travels" to the next form and I get an undefinded with nuGetProperty('record_id')

What I'm doing wrong?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Pass values to other form

Unread post by kev1n »

Try:

Code: Select all

nuSetProperty('reto_id', reto_id, true);
Post Reply