Remove link from listSmall layout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ceonello
    Member
    • Feb 2020
    • 36

    Remove link from listSmall layout

    Hi everyone,
    in our application we have a list of related records on the Case detail page.
    Those related records have a field of type Link that are rendered as an HTML link , is there a way to render them without the HTML link but just as plain text?
    I read a similar thread at https://forum.espocrm.com/forum/gene...6-link-in-list, and the solution proposed is to use fieldName (i.e accountName instead of account), the problem is that, when using this approach, the attribute fieldName is correctly rendered only if the original field is present in the layout (both account and accounName must be present) otherwise the attribute accountName is not retrieved and so not rendered.
    Any solution to that?
    thank you in advance
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1611

    #2
    Hello, you can change the field type in your custom entity json file from "url" to "varchar". After that execute rebuild and refresh the page. You can change that back in the same way, if you once should need the link again.

    Comment

    • emillod
      Active Community Member
      • Apr 2017
      • 1405

      #3
      Yes. shalmaxb is right. It should be also possible to do by removing field and adding field of different type WITH THE SAME name.
      If you don't know how to do this through code, i recorded short video for you with step-by-step tutorial: https://youtu.be/OpsCtWyuw9U

      Comment

      • Ceonello
        Member
        • Feb 2020
        • 36

        #4
        thank you very much guys, always helpful

        Comment

        Working...