1

Highlight attachment icon

Hi, i want to know if there is a way to highlight the clip icon of a record when an attachment is attached to it

6replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
    • Sean
    • Sean
    • 8 mths ago
    • Reported - view

    Yes, you can add a Formula field and put this code in it...

     

    if count(files(this)) != 0 then
    html("
    <style>
    .i-light-grey.i-attachment {
    background-color: #a9a9a9;
    border-radius: 4px;
    }
    </style>
    ")
    end

     

    Feel free to change the background-color. You can't hide the Formula field with "Display field only, if:" set to null. You have to set "Label position" to "Hidden" and set the "Background color" of the "Style" property to match your form color. The performance in the browser or cloud version is a little slow so you can't go racing through your records and expect it to keep up. Not a problem in the Mac app.

    Like
  • I've used the count in a formular to give the numbers on the record.
    however I have changed colour background  to yellow ie #FFFF00;

    as being colour blind it helps me by really standing out!

    Nice mod

    Screenshot 2022-01-14 at 16.04.35.   Screenshot 2022-01-14 at 16.01.44

    Like
  • ooops last image a bit small!

    Screenshot 2022-01-14 at 16.07.08

    Like
  • Ciao Sean,

     

    esiste un modo per evidenziare un TAB creato in una determinata condizione?

     

    Ad esempio: TAB "Notifiche" colora in rosso se......

    Like
    • Sean
    • Sean
    • 6 mths ago
    • Reported - view

    Hi Antonello,

     

    Sure, the Tab colors can be changed based on a condition in a Form view. There are multiple CSS classes for Tabs, but using .tab:nth-child(n) appears to override the other classes. So, if you put the following formula in your if-statement it sets the colors of the first Tab...

     

    html("
    <style>
    .tab:nth-child(1) {
    color: white;
    background-color: red;
    }
    </style>

    ")

     

    Just change the number of nth-child to set the colors of the correct Tab, e.g., .tab:nth-child(2) for the second Tab, .tab:nth-child(3) for the third Tab, etc.

    Like
  • Grazie Sean, funziona alla grande

    Like
Like1 Follow
  • 1 Likes
  • 6 mths agoLast active
  • 6Replies
  • 204Views
  • 1 Following