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 / Use ampersand in Notif...
Power Apps
Unanswered

Use ampersand in Notify function

(1) ShareShare
ReportReport
Posted on by 52

Hi community,

Im trying to create notification with the text "Name can not be empty or include any of these characters: " * : < > & ? / \ | . ~ # % { } ",
but in Play mode "< > &" is changed by "&lt; &gt; &amp".
I tried to use "Name can not be empty or include any of these characters: " * : " & Char(60) & " " & Char(62) & " " & Char(38) & " ? / \ | . ~ # % { } " but it didn't help.

Are there some solution or ideas how to fix it?
Thanks.

Categories:
  • zmorek Profile Picture
    3,272 on at

    Strange, I'm not encountering that:

     

    zmorek_0-1676642864399.png

     

    Here's what I used:

    Notify("Name can not be empty or include any of these characters: "&Char(34)&" * : < > & ? / \ | . ~ # % { } ")

     

    Is that what you're attempting to do?

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @andrii94,

     

    Your approach is working OK for me, although I made a tweak to pass the character code for the ". Building this text string with character codes for the remaining symbols should work as expected:

    Notify("Name can not be empty or include any of these characters: * : " & Char(34) & " " & Char(60) & " " & Char(62));

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

  • timl Profile Picture
    37,420 Super User 2026 Season 2 on at

    Hi @andrii94 

    You might also try HTML escaping the characters like so:

    Notify("Name can not be empty or include any of these characters: "& Char(34)&" * : &lt; &gt; & ? / \ | . ~ # % { } ")

    This worked for me ok.

    timl_0-1676646082557.png

     

  • andrii94 Profile Picture
    52 on at

    Thanks for all your replies!
    Trying with 

    Notify("Name can not be empty or include any of these characters: * : " & Char(34) & " " & Char(60) & " " & Char(62));


    It works in case if you are in the Edit mode and click on Preview mode:

    andrii94_0-1676646831898.png


    But in case if you open the app from the URL it is not working:

    andrii94_1-1676646980059.png

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard