web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard