cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aruntd77
Advocate II
Advocate II

Input Validation

Dear Friends,

 

I am looking out for an option to check if the input text is alpha numeric/email format etc. Please let me know how can I achieve this input validation on Form before submit.

 

Thanks

Arun

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi Arun,

 

So far, I haven’t seen a way to check if the input text is Alphanumeric/Email format. I guess this has not been supported by PowerApps.

 

May I suggest you submit an idea about this issue at PowerApps Ideas Forum? The link of PowerApps Ideas Forum is:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-yamao-msft
Community Support
Community Support

Hi Arun,

 

So far, I haven’t seen a way to check if the input text is Alphanumeric/Email format. I guess this has not been supported by PowerApps.

 

May I suggest you submit an idea about this issue at PowerApps Ideas Forum? The link of PowerApps Ideas Forum is:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you Mabel, I have submitted the idea.

gayatri
Regular Visitor

hi Team,

 

Is there any sample app to create alogin screen with Dynamics 365 users , after validation, its should go to the next page.

 

Any sample powerapp is highly appriciated.

 

Thanks,

Gai3

Anonymous
Not applicable

I see this is quite an old post so things have changed since, but people might still come here looking for answers so;

 

I do this with IsMatch using regex - there are a bunch of pre-defined regex pattern options like Email;

 

IsMatch(TextInput.Text, Email )

returns true if it's formatted like an email using the pattern .+@.+\.[^\.]{2,} (and looking at that, I'm grateful for the predetermined Email pattern!)

 

Besides the pre-determined patterns, you can obviously apply your own regex, and to test custom patterns I usually use something like https://regex101.com.

 

You can then communicate to the user in-line with things like the BorderColor property on the TextInput as they enter the data;

If(IsMatch(TextInput.Text, Email), Color.Green, Color.Red)

You can view all the patterns and details for IsMatch here;
https://powerapps.microsoft.com/en-us/tutorials/function-ismatch/

 

Hope this helps someone,

 

R

 

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,868)