Hide a value in dropdown list (Lookup column)
- vegard.grutle
- Posts: 59
- Joined: Fri Mar 17, 2017
Hi!
I need to hide a value in a dropdown list (Lookup column). How can i achieve this in a quick maner?
Thanks!
Vegard
I need to hide a value in a dropdown list (Lookup column). How can i achieve this in a quick maner?
Thanks!
Vegard
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
Dear Vegard,
If you are using regular Lookup and not Cross-site Lookup, the following code should work, just replace value with the ID of the item you want to hide:
If you are using regular Lookup and not Cross-site Lookup, the following code should work, just replace value with the ID of the item you want to hide:
Code: Select all
fd.field('Lookup').control()._el().find('select option[value=1]').hide();
Cheers
- vegard.grutle
- Posts: 59
- Joined: Fri Mar 17, 2017
Hi, Nikita
Did the trick changing .Hide(); to .remove();.
Many thanks!
Did the trick changing .Hide(); to .remove();.
Many thanks!
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests