Announcements
Hi,
I want to validate "123801902V" or "201923920v" text filed in a form in the power app .How I do it?
there should be 9 digits and one letter .
Thank you.
hey @Erandi
is it always the letter V or any letter? what is ypir exact use case? so what happens when the validation is true?
HI @Erandi , You can use IsMatch. Check this:
https://www.matthewdevaney.com/data-validation-for-power-apps-forms/
https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-ismatch
-----------------------------------------------------------------------------------------------------------------------------I hope this helps.Please click Accept as solution ✅ 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 giving it Thumbs up.👍Thanks,ANB
You can use IsMatch function to compare your input value with a RegEx.
For example:
IsMatch(TextInput.Text, "^\d{9}[a-zA-Z]$")
This Regex will help to reach what you want. You could do the validation like this:
If( IsMatch( TextInput.Text, "^\d{9}[a-zA-Z]$" ), "Input is valid", "Input is not valid" )
Ref: IsMatch, Match, and MatchAll functions - Power Platform | Microsoft Learn
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @mmbr1606 ,yes it can be "V" and "v". That is a ID number pattern. So i want validate it when submitting to form.
@Erandi Try this
IsMatch( TextInput1.Text, Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Letter )
Hi guys,
If I use the numbers between 0 to 9, it should be
hi @enriqueglopez ,
i tried but i am getting error like this.
Use this one instead
"^\d{9}[vV]$"
This Regex will validate that the first 9 characters are a number and the last is V or v.
@Erandi If last letter will always "V" or "v", this should also help you
IsMatch( TextInput1.Text, Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Digit & Match.Letter ) && ("V" in TextInput1.Text || "v" in TextInput1.Text)
You can add above thing in the condition.
then if i want to validate 6 digits long ID.can I use like this?
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 602
WarrenBelz 473 Most Valuable Professional
Valantis 310