Remove hyperlink from a view form

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

30 Jan 2017

Is it is possible to remove the hyperlink from a lookup field or people picker field on a view form. I set both fields to read only but these are still hyperlinked

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

31 Jan 2017

Hi,

Please, use the code:

Code: Select all

fd.field('FieldName').control()._el().html(fd.field('FieldName').value());
Replace 'FieldName' with the internal name of your lookup or user field.

jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

31 Jan 2017

Thanks for your reply Dmitry, i have used the above code, in the forms JavaScript. The field I am using is named Departments and replaced where you advised. It is still hyperlinked when viewed in my display form?

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

31 Jan 2017

Please, send HTML-source of the form page to support@spform.com.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests