Page 1 of 1

Lookup fields in Display Form

Posted: 15 Dec 2014
by AgneseB
Is it possible to remove hyperlinks for some lookup fields in Display Form and display them as simple text?

Re: Lookup fields in Display Form

Posted: 16 Dec 2014
by Dmitry Kozlov
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.

Re: Lookup fields in Display Form

Posted: 17 Dec 2014
by AgneseB
Perfect! Thank you!