Welcome to the nuBuilder Forums!

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

Lookup

Questions related to using nuBuilder Forte.
Post Reply
Henk_2a
Posts: 52
Joined: Sun Feb 14, 2016 8:42 pm
Location: Nederland

Lookup

Unread post by Henk_2a »

Hello
when I make a lookuplist the index is displayed as a small box next to the lookupbutton, even with a width of 0.
lookup.jpg
Is it possible to hide this indexfield completely?
Thanks
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 447 times
Contact:

Re: Lookup

Unread post by kev1n »

Hi,

You can do that with Javascript by adding this code to the form's custom code:

Code: Select all

if (nuFormType() == 'edit') {
   $('#YOUROBJECTID_idcode').hide();
}
Just replace YOUROBJECTID with your object id.
Henk_2a
Posts: 52
Joined: Sun Feb 14, 2016 8:42 pm
Location: Nederland

Re: Lookup

Unread post by Henk_2a »

thanks for your answer
I made this of it:
[img]hide.jpg[/img]
but it doesn't work ......
What did I do wrong?
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 447 times
Contact:

Re: Lookup

Unread post by kev1n »

You see the Id when you double-click on the label of the object.
id.png
You do not have the required permissions to view the files attached to this post.
Henk_2a
Posts: 52
Joined: Sun Feb 14, 2016 8:42 pm
Location: Nederland

Re: Lookup

Unread post by Henk_2a »

Problems.
First of all my form is browseedit, so I guess I have to replace the edit with browseedit?
Secondly my id = coordinator_id. So what is the exact frase, you use only one # and at the end you add _idhide.
So it looks like '#coordinator_id_idhide' ?
For now all these options do not work, there is still much confusion.
Thanks for your help.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 447 times
Contact:

Re: Lookup

Unread post by kev1n »

_code postifx

Code: Select all

if (nuFormType() == 'edit') {
   $('#coordinator_idcode').hide();
}
No need to change the form type. nuFormType() == 'edit' is just checking if you are in the Edit screen.
Last edited by kev1n on Sat Oct 05, 2019 7:17 am, edited 1 time in total.
gerese
Posts: 132
Joined: Sun Dec 16, 2018 6:13 pm
Location: România
Has thanked: 30 times
Been thanked: 4 times

Re: Lookup

Unread post by gerese »

Code: Select all

if (nuFormType() == 'edit') {
   $('#coordinator_idcode').hide();
}
nuBuilderForte .... BIG Like !!!
Post Reply