Forum Discussion

LukeJSmith's avatar
LukeJSmith
Copper Contributor
Oct 10, 2022
Solved

When formatting gallery view can you make items that appear on the card change based column value?

I would like to have a gallery view that is grouped by a status value such as: "requested" "in work" "complete" and I would like the information displayed on the card to change based on this status. ...
  • ganeshsanap's avatar
    ganeshsanap
    Oct 10, 2022

    LukeJSmith You can get the grouped column value in JSON using: 

     

    @group.fieldData

     

    Then you can show/hide elements based on column value like: 

     

    "style": {
        "display": "=if(@group.fieldData == 'Requested', 'inherit', 'none')"
    }

     

    This will show element if column value is equal to "Requested" else hide an element.


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources