Hello
when I make a lookuplist the index is displayed as a small box next to the lookupbutton, even with a width of 0.
Is it possible to hide this indexfield completely?
Thanks
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Lookup
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Lookup
Hi,
You can do that with Javascript by adding this code to the form's custom code:
Just replace YOUROBJECTID with your object id.
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();
}
-
- Posts: 52
- Joined: Sun Feb 14, 2016 8:42 pm
- Location: Nederland
Re: Lookup
thanks for your answer
I made this of it:
[img]hide.jpg[/img]
but it doesn't work ......
What did I do wrong?
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.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Lookup
You see the Id when you double-click on the label of the object.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 52
- Joined: Sun Feb 14, 2016 8:42 pm
- Location: Nederland
Re: Lookup
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.
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.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 447 times
- Contact:
Re: Lookup
_code postifx
No need to change the form type. nuFormType() == 'edit' is just checking if you are in the Edit screen.
Code: Select all
if (nuFormType() == 'edit') {
$('#coordinator_idcode').hide();
}
Last edited by kev1n on Sat Oct 05, 2019 7:17 am, edited 1 time in total.
-
- Posts: 132
- Joined: Sun Dec 16, 2018 6:13 pm
- Location: România
- Has thanked: 30 times
- Been thanked: 4 times
Re: Lookup
Code: Select all
if (nuFormType() == 'edit') {
$('#coordinator_idcode').hide();
}
nuBuilderForte .... BIG Like !!!