A simple Key-Value Card with buttons?
Hello! So i've been trying to implement a simple card, that shows a Title, Key-Value pairs and 2 Buttons.
The closest i could get is the Receipt card. That works decently on Telegram and Slack with the Property "Facts". Now i also want to show it on Skype. The problem i have there is that the card is not shown if the fields "Tax" and "VAT" (maybe also "Total", im not sure) aren't set. But i dont want those fields (i want to show data that isnt even remotely related to Recipes).
For Skype i tried out to use a Thumbnail Card. But that doesnt support the Key-Value Pairs "Facts". Also on the Desktop Client of Skype it leaves an empty placeholder for the picture, which isnt good (on mobile it doesnt show that placeholder).
Is there really no comfortable and clean way to Show properly formatted Key-Values with 2 Buttons?
Greetings
Instead of using a card type, you might try sending your table of key/values as the text of the message, and formatting the text using markdown syntax. Sample:
**Title**\n\n
---\n\n
Key: Value\n\n
Key: Value\n\n
----------------------------UPDATE--------------------------------- Okay. So i figured out, that in the thumbnail card its not a placeholder for a picture. Its for the text. And that you cant use markdown in the text property, but you can use \n which is somewhat ok. But im not sure whether its a bug or not: The desktop client of skype only shows 2 lines in the text (and subtitle) area. So "test\ntest\ntest" would only show test twice. On the other hand the mobile client of skype shows everything (all 3 "test").
Is that a bug in the desktop client?
------------------------------- /update ------------------------------------------ That kind of works but i need buttons. And apparently (correct me if im wrong) you can only add buttons to a message with a card. I tried adding a hero card without a text and just buttons. That has some disadvantages though: First: I can only add it to a message once. So if i want to send multiple items (Key-value pairs, 2 buttons.) i would have to send multiple messages. When i use the cards in slack i can just add multiple cards to one message.
Second: The buttons arent visually connected to the message text. The added hero card and the text look like 2 separate messages. That isnt really a nice approach.
Maybe I'm missing a way to properly add buttons to a message? And using markdown with the other cards (in the title or discription) doesn't work.
But im not sure whether its a bug or not: The desktop client of skype only shows 2 lines in the text (and subtitle) area. So "test\ntest\ntest" would only show test twice. On the other hand the mobile client of skype shows everything (all 3 "test"). Is that a bug in the desktop client?
This does sound like a Skype bug. Tagging appropriately. Thanks for reporting.
Hero cards have some limitations on the size of its elements. "text", "title" and "subtitle" could have up to two lines and the rest is truncated. If "title" or "subtitle" is missing, then their two lines allowance is added to the text limit, so if for example both "title" and "subtitle" are missing, you can have up to 6 lines for "text".
Please let me know on which platform you observe different behaviour, I'll let the corresponding team know.
So im asuming you are just talking about a restriction for skype? Because in Slack i can use 8 Lines for text.
For some reason i can't see more than the limited amount of lines described by you anymore.(Skype Mobile App) Maybe it was just a shorttime bug. But i have to say that this limitation isnt really good =/ Its pretty hard to have a 100% text card with buttons then.
Sorry for the confusion, yes it is just about Skype.
Seems like this issue was clarified. Closing due to inactivity, please open a new issue or reply to this one asking us to reopen if needed. Thanks!