Lookup fields in Display Form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

15 Dec 2014

Is it possible to remove hyperlinks for some lookup fields in Display Form and display them as simple text?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

16 Dec 2014

Of course, please, try the code below:

Code: Select all

var fieldCtrl = fd.field('LookupField').control()._el();
fieldCtrl.html(fieldCtrl.text());
Replace 'LookupField' with the internal name of your lookup field.

AgneseB
Posts: 14
Joined: Tue Dec 16, 2014

17 Dec 2014

Perfect! Thank you!

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests