Page 1 of 1

Form id - reference

Posted: Fri Jan 11, 2019 12:14 pm
by Janusz
Hi, I have some issue to use properly reference to the form.

with following code it works:

Code: Select all

function nuSelectBrowse(e) {
    var r = $('#' + e.target.id).attr('data-nu-primary-key');
        nuForm(nuGetProperty('form_id'), r);
}
but if try to do the same putting directly form Id like:

Code: Select all

nuForm(FF10, r) or nuForm('#FF10', r) or ...
I can not make it running


my form "code: FF10" is placed as following:

placed on:
main window with Code: nuuserhome
in tab Title: Offfers
in the iframe: FF_oferty_iframe
form Code: FF10

can you please let me know how exactly put the form ID in fllowing line to have it running?

nuForm(??????, r)


Janusz

Re: Form id - reference

Posted: Fri Jan 11, 2019 1:05 pm
by kev1n
Open the form you'd like to open and open the Developer console by pressing F12. Then type in

nuCurrentProperties().form_id


and the form id will be output.

formid.png

Re: Form id - reference

Posted: Fri Jan 11, 2019 2:13 pm
by Janusz
Thanks a lot - it's working :-)

Re: Form id - reference

Posted: Sat Jan 12, 2019 9:20 am
by kev1n
Janusz wrote:Thanks a lot - it's working :-)
You're welcome !