Page 1 of 1

Copy value to Single Line of text

Posted: 18 Dec 2018
by vegard.grutle
Hi,

I have used this script to copy values from a lookup to SLT.

Code: Select all

fd.onsubmit(function(){
  var lookuptext = fd.field('Lookup').control('getSelectedText');
  fd.field('Text').value(lookuptext);
  
	return true;
}

);
Is there a way to tweek this script in order to get the value from a people picker field?

In advance, Thanks!

Vegard

Re: Copy value to Single Line of text

Posted: 20 Dec 2018
by AlexZver
Dear Vegard,

Please, check out this article ("Client People Picker" section): https://spform.com/javascript-framework ... eld-values

You can retrieve other values instead of Login like User Name, Email etc.