Page 1 of 1
Hide a value in dropdown list (Lookup column)
Posted: 02 May 2018
by vegard.grutle
Hi!
I need to hide a value in a dropdown list (Lookup column). How can i achieve this in a quick maner?
Thanks!
Vegard
Re: Hide a value in dropdown list (Lookup column)
Posted: 02 May 2018
by Nikita Kurguzov
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:
Code: Select all
fd.field('Lookup').control()._el().find('select option[value=1]').hide();
Re: Hide a value in dropdown list (Lookup column)
Posted: 02 May 2018
by vegard.grutle
Hi, Nikita
Did the trick changing .Hide(); to .remove();.
Many thanks!