set value in spform

Discussions about Cross-site Lookup
Locked
User avatar
GeraldMarxer
Posts: 5
Joined: Mon May 22, 2017

10 Apr 2018

Hi,

I try to set the value of the cross-site lookup field, but cannot get it to work.
The values for the id and text are in 2 variables.

What is the correct syntax:

var listId = 123;
var text = "name";
fd.field('Address').value( {Id: listId, Title: text});

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

10 Apr 2018

Dear Gerald,
Do you get any error in the browser's console?
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests