Page 1 of 1

Set cross-site lookup with single value if only 1 option

Posted: 12 Jan 2018
by danieljr
Hello,

How can I set a cross-site lookup with single value on the first option when it's the only one available?

Thank you,

Daniël Pharazijn
IT Stedelijk Onderwijs Antwerp

Re: Set cross-site lookup with single value if only 1 option

Posted: 15 Jan 2018
by Nikita Kurguzov
Hello, Daniël!
Cross-site Lookup is designed in a way to make it less performance heavy, so it only loads values when you click on it. One option you have in this scenario is to make a JavaScript request to the same list, with the same parameters, and see how many results it returns, then if it's just one, set this item automatically.

But that's really extensive! It's generally much easier for the user to simply press Enter after opening the dropdown.