Page 1 of 1

Pass values to other form

Posted: Thu May 23, 2024 9:42 pm
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?

Re: Pass values to other form

Posted: Thu May 23, 2024 11:00 pm
by kev1n
Try:

Code: Select all

nuSetProperty('reto_id', reto_id, true);