Creare un sondaggio di esempio
L'esempio di creazione di un sondaggio è un modulo di input per schede adattive progettato per l'invio di sondaggi a Microsoft Teams. Sostituire il testo visualizzato in questa scheda personalizzandolo per il sondaggio. Questa scheda adattiva consente di prendere percorsi decisionali diversi in base alle risposte nei valori dei sondaggi o ai conteggi dei voti, degli utenti della scheda.
Input/output e note
Nome del token dinamico | Testo segnaposto | Note: |
---|---|---|
Posizione | Testo visualizzato | |
acHeaderTagLine | Testo visualizzato | |
acHeader | Testo visualizzato | |
acPollQuestion | Testo visualizzato | |
acPollChoices | Output di risposta Selezione singola con pulsanti di opzione |
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Poll Request",
"id": "Title",
"spacing": "Medium",
"horizontalAlignment": "Center",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "Header Tagline Text",
"id": "acHeaderTagLine",
"separator": true
},
{
"type": "TextBlock",
"text": "Poll Header",
"weight": "Bolder",
"size": "ExtraLarge",
"spacing": "None",
"id": "acHeader"
},
{
"type": "TextBlock",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vestibulum lorem eget neque sollicitudin, quis malesuada felis ultrices. ",
"id": "acInstructions",
"wrap": true
},
{
"type": "TextBlock",
"text": "Poll Question",
"id": "acPollQuestion"
},
{
"type": "Input.ChoiceSet",
"placeholder": "Select from these choices",
"choices": [
{
"title": "Choice 1",
"value": "Choice 1"
},
{
"title": "Choice 2",
"value": "Choice 2"
},
{
"title": "Choice 3",
"value": "Choice 3"
}
],
"id": "acPollChoices",
"style": "expanded"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit",
"id": "btnSubmit"
}
]
}