Is there any way to have optional characters in a Input mask Control?
Currently, I have ">AAAAAAAA" as mask, but the requirement is to have 7 or 8 characters...
I thought about ">AAAAAAAa" but that means the user has to enter an additional character (space) when it has only 7 characters...
Go to Solution.
AFAIK, no, there is no regex "?" equivalent in the field mask capability. The only "optional" characters are "character or space" not "character or null".To accomplish this, you can write client script to watch the field, or you could make a PCF for it. In either case, the coding would not be very complex; just a single regex validation.
View solution in original post
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!