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

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
danieljr
Posts: 4
Joined: Wed Jun 28, 2017

12 Jan 2018

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
Thank you,

Daniël Pharazijn | IT-department | AG Stedelijk Onderwijs Antwerp Belgium

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

15 Jan 2018

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.
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests