Lookup fields in Display Form

rss

Posted by AgneseB - Dec 15 ’14 at 09:12

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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #1 by Dmitry Kozlov Dec 16 ’14 at 08:34

    Of course, please, try the code below:

    var fieldCtrl = fd.field('LookupField').control()._el();
    fieldCtrl.html(fieldCtrl.text());
    

    Replace 'LookupField' with the internal name of your lookup field.

  • AgneseB
    Member
    Member for: 5 years 10 days
    #2 by AgneseB Dec 17 ’14 at 06:56

    [#1]: Perfect! Thank you!

Displaying 1 to 2 of 2 messages