Page 1 of 1
Remove hyperlink from a view form
Posted: 30 Jan 2017
by jpwallace
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
Re: Remove hyperlink from a view form
Posted: 31 Jan 2017
by Dmitry Kozlov
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.
Re: Remove hyperlink from a view form
Posted: 31 Jan 2017
by jpwallace
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?
Re: Remove hyperlink from a view form
Posted: 31 Jan 2017
by Dmitry Kozlov
Please, send HTML-source of the form page to
support@spform.com.