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 Apps
Suggested Answer

FORMULAS

(1) ShareShare
ReportReport
Posted on by 2
I TAKE A TEXTINPUT AND CANCEL ICON I NEED A FORMULA LIKE I NEED ONE SPESHAL CHARAKTER AND ONE NUMBER AND ONE DIGIT
Categories:
I have the same question (0)
  • Suggested answer
    sumit_artesian Profile Picture
    261 on at
     
    You can use IsMatch on your TextInput. For your requirement (at least one special character, one number, and one letter), something like this works:
    IsMatch(
        TextInput1.Text,
        "^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9]).+$"
    )
     
    You can plug this into your validation logic (e.g., show error, disable button, etc.).
     
    Please  Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item.
    If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like! 🩷
  • Suggested answer
    oyepanky Profile Picture
    537 on at
    Hi @CU30040755-0
     

    It looks like you want to validate a TextInput so that it contains:

    • At least 1 letter
    • At least 1 number
    • At least 1 special character

    In Microsoft PowerApps, you can achieve this using IsMatch() with a regex pattern.

    Validation Formula

    IsMatch(
        TextInput1.Text,
        "^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&]).+$"
    )

    If you want to disable the Button/Icon - until this text is not valid - use this on the button/icon display mode 

    If(
        IsMatch(TextInput1.Text, "^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&]).+$"),
        DisplayMode.Edit,
        DisplayMode.Disabled
    )
     

    Best Regards,
    Pankaj Jangid (OyePanky)
    Power Platform Developer
    Website: https://dialforit.com
    YouTube: https://www.youtube.com/@Oyepanky

  • Suggested answer
    TechFreak Profile Picture
    149 on at

    Hi,

    Got it — you want to validate a TextInput so that it contains:


    • at least one special character

    • at least one number

    • at least one letter
     

    In Power Apps, the cleanest way to do this is using IsMatch() with a regex pattern.

    Set your validation formula like this:

    IsMatch(
        TextInput1.Text,
        "^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9]).+$"
    )
     

    What this checks:


    • (?=.*[A-Za-z]) → at least one letter

    • (?=.*\d) → at least one number

    • (?=.*[^A-Za-z0-9]) → at least one special character
     

    You can use this in different ways.

    If you’re using a Cancel icon or Submit button:

    If(
        IsMatch(TextInput1.Text, "^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9]).+$"),
        Notify("Valid input", NotificationType.Success),
        Notify("Must contain letter, number and special character", NotificationType.Error)
    )
     

    Or to disable a button until valid:

    DisplayMode = If(
        IsMatch(TextInput1.Text, "^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9]).+$"),
        DisplayMode.Edit,
        DisplayMode.Disabled
    )
     

    So basically, this ensures your input meets all three conditions before allowing any action.

     

    Best regards,
    Satyam Pandey

     

    ✅ If this helped solve your issue, please mark it as Accepted Solution so others can find it quickly.

    ❤️ If it was helpful, please click Yes on “Was this reply helpful?” or give it a Like.

    🏷️ For follow-ups, feel free to tag @TechFreak

    💼 LinkedIn

    ▶️ YouTube

  • Suggested answer
    11manish Profile Picture
    3,333 on at
    Use the IsMatch function with a regex pattern to enforce at least one letter, one number, and one special character. This is the most reliable way
     
    to validate complex input rules in Power Apps.
     
    most likely below : 
     
    !IsMatch(TextInput1.Text, "^(?=.*[A-Za-z])(?=.*\d)(?=.*[^A-Za-z0-9]).+$")

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 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard