Remove hyperlink from edit column

rss

Posted by jpwallace - Feb 23 ’17 at 05:03

I have the following code placed in the javascript editor on my display form to remove hyperlinks from lookup columns, when i put the same code in my edit form, the layout of the form changes (i lose my tabbed related items) and am still able to click lookup columns, what should i change in order to have this work on my edit form.

$(document).ready(function() {
$('a[href*="RootFolder=*"]').each(function(index) {
var link = $(this);
$(this).after("<span>" + link.text() + "</span>");
$(this).remove();
});
});

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 2 months 8 days
    #1 by Dmitry Kozlov Feb 27 ’17 at 03:59

    Hi,

    Most likely, you have a syntax error in your edit form. Expand the browser console (F12) and check the error messages.

  • jennymadsan
    Member
    Member for: 1 year 1 month 8 days
    #2 by jennymadsan Oct 19 ’20 at 02:17

    yes you are  right  like why iam try w3 school webiste
    <a href="https://www.w3schools.com/">Visit W3Schools.com!</a>

  • jennymadsan
    Member
    Member for: 1 year 1 month 8 days
    #3 by jennymadsan Oct 19 ’20 at 02:18
Displaying 1 to 3 of 3 messages