Form id - reference

Questions related to using nuBuilder Forte.

Form id - reference

Postby Janusz » Fri Jan 11, 2019 8:44 pm

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
Janusz
 
Posts: 41
Joined: Fri Dec 28, 2018 10:11 pm

Re: Form id - reference

Postby kev1n » Fri Jan 11, 2019 9:35 pm

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 71 times
kev1n
 
Posts: 53
Joined: Mon Oct 15, 2018 2:13 am

Re: Form id - reference

Postby Janusz » Fri Jan 11, 2019 10:43 pm

Thanks a lot - it's working :-)
Janusz
 
Posts: 41
Joined: Fri Dec 28, 2018 10:11 pm

Re: Form id - reference

Postby kev1n » Sat Jan 12, 2019 5:50 pm

Janusz wrote:Thanks a lot - it's working :-)


You're welcome !
kev1n
 
Posts: 53
Joined: Mon Oct 15, 2018 2:13 am


Return to General



cron