Question

Set List Lookup "List Column Name" using Javascript

  • 30 January 2024
  • 2 replies
  • 37 views

Badge +1

Hi,

I have a list lookup that I need to look at one of two columns depending on what the interface language is of the user.  I can get that interface language using:

var lcid =_spPageContextInfo.currentLanguage;

which results in 1033 for English and 1036 for French.

I’d like the list lookup to check a column named “Summary” if it’s English and a column named “SummaryFR” if it’s French.  However the list lookup control does not allow variables to be used as part of the expression.

I looked at Javascript to set that column, but I cannot seem to find the right property to put the value into.

Thanks


2 replies

Userlevel 5
Badge +14

Are you using Classic Forms or something else? 

Badge +1

Are you using Classic Forms or something else? 

Good morning, Classic, on-premise 2019.  I’ve been inspecting the controls properties to see if I can find the right property, but no luck so far.

Reply