Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update cards-actions.md
  • Loading branch information
v-kushals committed Nov 5, 2024
commit 600f458d1f60178bcf0edb0ca93dab14df031bf4
12 changes: 6 additions & 6 deletions msteams-platform/task-modules-and-cards/cards/cards-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -535,16 +535,17 @@ The following is an example of the incoming activity to a bot when user types so
}
```

### Conditional enablement of action buttons in Adaptive Cards
### Conditional enablement of action buttons

You can use the `conditionallyEnabled` property to disable the action buttons until the user provides the required input.
You can use the `conditionallyEnabled` property to disable action buttons until the user provides the required input. For a conditionally enabled button, if the `isEnabled` property is set to `false`, actions are disabled regardless of the input.

Here's how the `conditionallyEnabled` property is defined:

| Property| Type | Required | Description |
|-----------|------|----------|-------------|
| `conditionallyEnabled` | Boolean | ✔️ | Controls if the action is enabled only if at least one required input has been filled by the user. |
| `isEnabled` | Boolean | | Controls the enabled state of the action. A disabled action cannot be clicked. If the action is represented as a button, the button's style will reflect this state. |
| `conditionallyEnabled` | Boolean | ✔️ | Controls if the action is enabled only if at least one required input has been filled by the user. This property can only be used with `Action.Submit` and `Action.Execute` actions. |

The following card payload shows a conditionally enabled buttons:
The following card payload shows a conditionally enabled button:

```json
{
Expand Down Expand Up @@ -588,7 +589,6 @@ The following card payload shows a conditionally enabled buttons:

:::image type="content" source="../../assets/images/adaptive-cards/disabled.png" alt-text="Screenshot shows an Adaptive Card with disabled submit button on the Teams.":::


:::column-end:::

:::column span="2":::
Expand Down