Edit

Share via


Text input control in cards

Important

Effective August 29, 2025, Cards for Power Apps will be deprecated and no longer supported. As a result, any Cards for Power Apps that have been built and shared in Microsoft Teams will not function. Users will not be able to create new cards or execute existing ones.

We recommend migrating any functionality you rely on from Cards for Power Apps before the deprecation date. Consider transitioning to either Adaptive Cards in Copilot Studio or adaptive cards for Microsoft Teams for similar functionality. More information: Deprecation of Cards for Power Apps

A field for users to type text.

Properties

Default value – The initial value for this field.

Placeholder – Description of the input desired. Displayed when no selection has been made.

Label – Label for this input.

Multiline – If true, allow multiple lines of input.

Style – Determines the input type of the text input control, allowed values: text, tel, url, email, password.

Max length – Hint of maximum length characters to collect (may be ignored by some clients).

InlineAction – The inline action for the input. Typically displayed to the right of the input. It is strongly recommended to provide an icon on the action (which will be displayed instead of the title of the action).

Initially visible – If false, this item will be removed from the visual tree.

Spacing – Controls the amount of spacing between this control and the preceding control.

Divider – When true, draw a separating line at the top of the control.

Height – Specifies the height of the control.

Required field – Whether or not this input is required.

Error message – Error message to display when entered input is invalid.

Regex – Regular expression indicating the required format of this text input.

Repeat for every – The source of data that is used to show multiple instances of this control. Learn how to use repeat for every.

Show when – Conditional layout expression.