Page 1 of 1

copy cross site look up value to string field

Posted: 20 Nov 2018
by Roo
I have an issue when trying to use a cross site lookup field in a workflow and apparently I cannot get aroung this issue. As such I thought I would try and store the value of the cross site look into a single text line on update.

I've used the following code that I found in the forums, however all I get is [object Object] in the text line

The code I'm using is:


fd.onsubmit(function(){
var lookuptext = fd.field('Employee_x0020_Name').control('getSelectedText');
fd.field('emplres').value(lookuptext);
return true;
});
Employee_x0020_Name is the lookup field and emplres is the single line field

Re: copy cross site look up value to string field

Posted: 20 Nov 2018
by Roo
Sorry I sorted this:

fd.onsubmit(function(){

var lookuptext = fd.field('Employee_x0020_Name').control('data')['Column_required']
fd.field('emplres').value(lookuptext);
return true;
});

Re: copy cross site look up value to string field

Posted: 20 Nov 2018
by AlexZver
Hi Roo!

I'm glad you've figured it out ))

copy cross site look up value to string field

Posted: 07 Dec 2018
by KellyEphew
I have a calculated value column called WorkOrderID that I would like to display in an email. How do I go about doing that?