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 / textbox display only i...
Power Apps
Unanswered

textbox display only if conditions met on length of string and character conditions

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have 2  textboxes on a screen

 

i need textbox2 to display based on entry in  textbox2.

 

Conditions:

In textbox1  

if the length of the string  =  5

and

the 4th and 5th character do not end in AA

AND 

the string CAN NOT CONTAINS ALL NUMERICS

 

I NEED THAT STRING DISPLAYED IN TEXTBOX 2

i.e.

AS123  - does not get displayed

12345234 -  does not get displayed

ASDAA  -   does not get displayed

DDDFFE - does not get displayed

12345 -  does not get displayed

 

SDSER -  DOES GET DISPLAYED

AAASA - DOES GET DISPLAYED

DERE3  - DOES get displayed

1234E -  DOES GET DISPLAYED

 

 

Almost got this to work.

If(Len(txt_CustomerNumber_pr1.Text) = 5 && Right(txt_CustomerNumber_pr1.Text, 2) <>"AA"
&& IsMatch(txt_CustomerNumber_pr1.Text, "([A-Za-z]+[0-9]|[0-9]+[A-Za-z])[A-Za-z0-9]*"), txt_CustomerNumber_pr1.Text, "")

 

BUT the IsMatch regix cant contain numeric  

 

 

 

Thanks

Dave

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Aside from your question, you never need an If() in a visible property.  The conditions themselves are either true or false. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Aside from your question, you never need an If() in a visible property.  The conditions themselves are either true or false. 

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
11manish Profile Picture

11manish 602

#2
WarrenBelz Profile Picture

WarrenBelz 473 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 310

Last 30 days Overall leaderboard