Forum Discussion
When formatting gallery view can you make items that appear on the card change based column value?
- Oct 10, 2022
LukeJSmith You can get the grouped column value in JSON using:
@group.fieldDataThen 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.
LukeJSmith You can apply grouping on list views from list view settings. Check: Use grouping to modify a list or library view
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.
- LukeJSmithOct 10, 2022Copper Contributorso i already know how to group and i know how to format but how do you format based on what group something is in?
- ganeshsanapOct 10, 2022MVP
LukeJSmith You can get the grouped column value in JSON using:
@group.fieldDataThen 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.
- LukeJSmithOct 17, 2022Copper Contributorany response to my last commment?