Page 1 of 1
Lookup
Posted: Wed Oct 02, 2019 10:05 am
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
Re: Lookup
Posted: Wed Oct 02, 2019 10:16 am
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.
Re: Lookup
Posted: Thu Oct 03, 2019 11:01 am
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?
Re: Lookup
Posted: Thu Oct 03, 2019 12:13 pm
by kev1n
You see the Id when you double-click on the label of the object.
id.png
Re: Lookup
Posted: Thu Oct 03, 2019 6:54 pm
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.
Re: Lookup
Posted: Fri Oct 04, 2019 3:53 am
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.
Re: Lookup
Posted: Fri Oct 04, 2019 10:56 pm
by gerese
Code: Select all
if (nuFormType() == 'edit') {
$('#coordinator_idcode').hide();
}