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

(2) ShareShare
ReportReport
Posted on by 32
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
    688 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
    3,333 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
    3,653 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!
  • Vish WR Profile Picture
    3,748 on at
    In Power Apps,  Confirm function does not support line breaks or multi-line messages.
     
    try @Bezanca suggestion 
  • timl Profile Picture
    37,214 Super User 2026 Season 1 on at
     
    I just tested this and I was able to insert line breaks by entering <shift><enter> in the confirmation text.
     
    Set(var_ConfirmText, "Are you sure you want to archive this task?
    
    ");
    Set(var_ItemTitle, "Example Title");
    If(
        Confirm(
            var_ConfirmText & var_ItemTitle,
            {
                Title: "Confirm Archive"
            }
        ),
            //Archive the record here
            Notify("Record archived.", NotificationType.Success)
    )




    This then produces a confirmation that includes the line breaks. 
     
     
    All Confirm dialogs I create are titled "An embedded page... says". This didn't happen the other week, so I'm hoping this is a glitch that has just been introduced and will be resolved.
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard