Page 1 of 1

Form id - reference

PostPosted: Fri Jan 11, 2019 8:44 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

PostPosted: Fri Jan 11, 2019 9:35 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
formid.png (7.16 KiB) Viewed 249 times

Re: Form id - reference

PostPosted: Fri Jan 11, 2019 10:43 pm
by Janusz
Thanks a lot - it's working :-)

Re: Form id - reference

PostPosted: Sat Jan 12, 2019 5:50 pm
by kev1n
Janusz wrote:Thanks a lot - it's working :-)


You're welcome !