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 / Prevent spacebar being...
Power Apps
Answered

Prevent spacebar being used as content !

(0) ShareShare
ReportReport
Posted on by 1,257 Super User 2024 Season 1

I have a couple of mandatory free text fields in a form.  At the moment the submit button is greyed out unless there is content in these fields (I use  IsBlank... to determine)

 

However sneaky people are just using space bar to make the form think there is content !!!  🙂

 

How do I get around this?

 

TIA

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,649 Most Valuable Professional on at

    Try putting a Trim() around the field inside the IsBlank().  That should remove any spaces that aren't included with extra content.  Like this

    If(IsBlank(Trim( TextInput1.Text)),DisplayMode.Disabled,DisplayMode.Edit)
  • vffdd Profile Picture
    1,257 Super User 2024 Season 1 on at

    perfect thanks

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard