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 / restrict user to enter...
Power Apps
Answered

restrict user to entering HTML tags in text input

(1) ShareShare
ReportReport
Posted on by 504

How do we restrict users from entering HTML tags on my free text user input and only allowing dash (-)

Categories:
I have the same question (0)
  • chienhsianghung Profile Picture
    235 on at

    I was thinking you could do something like...

     

    make a popup warning "Please don't use HTML tag. Use dash '-' instead thank you."
    in Visible property of Popup:

    "<body>" in TextInput.text || "<html>" in TextInput.text ... etc

     

    And when you close the popup.
    in Onselect property of Popup:

    Reset({your TextInput control})

     

    Hope it helps 😀

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Disable the submit button if "<" in TextInput.Text or if ">" in TextInput.Text and put a message there that let's them know, that way they won't be able to submit if there's any <> inside the text

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard