Lookup

Questions related to using nuBuilder Forte.

Lookup

Postby Henk_2a » Wed Oct 02, 2019 5:35 pm

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
lookup.jpg (2.98 KiB) Viewed 95 times

Is it possible to hide this indexfield completely?
Thanks
Henk_2a
 
Posts: 24
Joined: Mon Feb 15, 2016 5:12 am

Re: Lookup

Postby kev1n » Wed Oct 02, 2019 5:46 pm

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

Re: Lookup

Postby Henk_2a » Thu Oct 03, 2019 6:31 pm

thanks for your answer
I made this of it:
[img]hide.jpg[/img]
but it doesn't work ......
What did I do wrong?
Attachments
hide.jpg
hide.jpg (15.58 KiB) Viewed 81 times
Henk_2a
 
Posts: 24
Joined: Mon Feb 15, 2016 5:12 am

Re: Lookup

Postby kev1n » Thu Oct 03, 2019 7:43 pm

You see the Id when you double-click on the label of the object.

id.png
id.png (11.42 KiB) Viewed 80 times
kev1n
 
Posts: 260
Joined: Mon Oct 15, 2018 2:13 am

Re: Lookup

Postby Henk_2a » Fri Oct 04, 2019 2:24 am

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.
Henk_2a
 
Posts: 24
Joined: Mon Feb 15, 2016 5:12 am

Re: Lookup

Postby kev1n » Fri Oct 04, 2019 11:23 am

_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 2:47 pm, edited 1 time in total.
kev1n
 
Posts: 260
Joined: Mon Oct 15, 2018 2:13 am

Re: Lookup

Postby gerese » Sat Oct 05, 2019 6:26 am

Code: Select all
if (nuFormType() == 'edit') {
   $('#coordinator_idcode').hide();
}
nuBuilderForte .... BIG Like !!!
gerese
 
Posts: 13
Joined: Mon Dec 17, 2018 2:43 am


Return to General



cron