Entity Definition Making Field Visible.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ananya K
    Member
    • Jul 2020
    • 50

    Entity Definition Making Field Visible.

    Can you please allow the feature like making the field visible only if the value set for that field?

    Example: Field Type = URL
    Make field visible: Field URL != null.

    This option is not allowed. Can you please add this feature to the URL type fields also?
  • item
    Active Community Member
    • Mar 2017
    • 1476

    #2
    Hello,

    just for me understand : how can you make visible a field if you have not possibility to put a value ? maybe is a calculate field ?
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

    Comment


    • Ananya K
      Ananya K commented
      Editing a comment
      URL is a read-only field. I want it visible only when the value is set.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #3
    I was initially thinking you could just do a "is not empty" conditions, but you are right, URL field type is not possible to choose the condition.

    In the meantime:
    Would this work as a work-around? Create a secondary field call varchar "URL2", create a Formula so that anytime you add a URL it get copy/or field change into the URL2. Now you can use the URL2 is "is not empty" conditions. All theory at the moment, I haven't for a working formula yet but varchar field should work with all conditions.

    Comment


    • Ananya K
      Ananya K commented
      Editing a comment
      When we have a varchar field to store the data, then the URL we need to add the validation also, URL in varchar it don't add hyperlink.

    • esforim
      esforim commented
      Editing a comment
      Don't know then, I'm out of idea.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1602

    #4
    Another idea: use the text editor field. There you can put an URL and use formula. Did not test it, but may work.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #5
      https://github.com/espocrm/espocrm/c...6e40cf38fbd32c
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment


      • Ananya K
        Ananya K commented
        Editing a comment
        This is cool.
    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #6
      Look like Yuri just add in the ability to create this condition. It look like he only change one file and it look quite simple enough, I think based on this code you can manually add it for any field you want.

      Comment

      Working...