Copy value to Single Line of text

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
vegard.grutle
Posts: 59
Joined: Fri Mar 17, 2017

18 Dec 2018

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

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

20 Dec 2018

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests