Announcement

Collapse
No announcement yet.

Field invisibility

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Field invisibility

    I'm trying to implement a "Due Date" warning to track my deadlines at the list of Opportunities. I don't know if there is a better way to do it, but I created an optional field "Stage Due Date" and a read only enum field "Stage Due" with only one value: "Due" (label + danger). I set it's visibiltity to "Stage Due Date is Past". Worked great on the Display layout, but they always show at the List layout, the main place where I need them to appear or not based on it's visibilty rule. Looks like the visibilty is related to all the field, not the value, so when I put the "Due Date" column at the list, visibilty is not computed line by line to remove the value only.

    Is there a way to implement my needs to have a dynamic expired deadline indicator when my "Stage Due Date" field is the past at the list of Opportunities?

  • #2
    Could you provide a screenshot? It is difficult to follow, what you want and how far you got.
    Basically your approach seems to be correct, but it is not possible to guess, what`s not working.

    Comment


    • #3
      As I know dynamic logic will not work on list view, only intended to work on details views, you need to create custom field view to implement the logic manually using javascript.
      CEO of Eblasoft
      EspoCRM Expert since 2014
      Full Stack Web Developer since 2008
      Creator of Numerous Successful Extensions & Projects​

      Comment


      • #4
        eymen-elkum is correct.

        If you plan to implement this functionality, here are some links that might help:

        Both GUI dynamic modification classes: dynamic logic https://github.com/espocrm/espocrm/b...namic-logic.js and dynamic handler https://github.com/espocrm/espocrm/b...mic-handler.js are triggered from the view class that renders a record in detail display mode: https://github.com/espocrm/espocrm/b...etail.js#L1006

        In order to modify the display in list display mode, you will need to adapt the code above to work with the list rendering class https://github.com/espocrm/espocrm/b...record/list.js

        So you will have to create a custom list rendering class and then call your custom view class to be used instead of the default list class at the target scope (entity type) metadata clientDefs file.

        this post has some information regarding the implementation of custom view classes. https://forum.espocrm.com/forum/deve...ange-something
        Last edited by telecastg; 04-19-2022, 05:25 PM.

        Comment


        • eymen-elkum
          eymen-elkum commented
          Editing a comment
          Thank you for the information!
      Working...
      X