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!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Lookup
-
- nuBuilder Team
- Posts: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 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();
}
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: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 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.
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: 4581
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 536 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 !!!