web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / New Line/Line Break in...
Power Apps
Suggested Answer

New Line/Line Break in Confirm Function

(1) ShareShare
ReportReport
Posted on by 26
Is there a way to insert a line break in the message of a confirm function?
 
Based on the various results on Google, I've tried using the following but none work.
  • Char(10)
  • Char(13)
  • "\r"
  • "\n"
  • "\r\n"
  • "<br>"
 
Confirm("Are you sure you want to Archive this task?"&Char(13)&var_ItemTitle)
 
Current Results:
 
Desired Outcome:
I have the same question (0)
  • Suggested answer
    Bezanca Profile Picture
    550 Super User 2026 Season 1 on at
    Hey @JD-09041325-0

    I believe the best way to achieve this is to use the 'Title' and 'Subtitle' options: 

     
    Heres the code I used for the above: 
     
     
    If(
        Confirm(
            "Are you sure you want to delete this record?",
            {
                Title: "Example Title",
                Subtitle: "Example SubTitle",
                ConfirmButton: "Delete",
                CancelButton: "Cancel"
            }
        ),
            Remove(YourDataSource, Gallery1.Selected);
            Notify("Record deleted.", NotificationType.Success)
    )
  • Suggested answer
    11manish Profile Picture
    2,126 on at
    The Confirm() function in Power Apps does not support line breaks because it renders a native dialog that ignores formatting characters like Char(10), "\n", or
     
    HTML tags.
     
    If you need multi-line messages, the recommended approach is to create a custom confirmation popup using a container and label, where line breaks using
     
    Char(10) will work correctly or you can follow 's suggestion as best approach.
  • Suggested answer
    Haque Profile Picture
    2,532 on at
     

    In Power Apps, the built-in Confirm function (which shows a simple confirmation dialog) does not support line breaks or multi-line messages. The message parameter is rendered as plain text without interpreting newline characters like Char(10) or Char(13).

    If you need to show a multi-line confirmation or message with line breaks, the recommended approach is to create a custom confirmation dialog using a combination of controls (e.g., a Label or Text control inside a Popup or a visible container) where you can format the text freely, including line breaks.

     

    I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 936

#2
11manish Profile Picture

11manish 628

#3
Valantis Profile Picture

Valantis 604

Last 30 days Overall leaderboard