Welcome to the nuBuilder Forums!

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

Form id - reference

Questions related to using nuBuilder Forte.
Post Reply
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Form id - reference

Unread post 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
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form id - reference

Unread post 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
You do not have the required permissions to view the files attached to this post.
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Form id - reference

Unread post by Janusz »

Thanks a lot - it's working :-)
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form id - reference

Unread post by kev1n »

Janusz wrote:Thanks a lot - it's working :-)
You're welcome !
Post Reply