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:
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:
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