cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Muthusamy
Level: Powered On

Can any one help me how can stop user to enter dot(decimal numbers) in text box

Allow users to enter whole numbers but not decimal numbers in text box onchange
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Can any one help me how can stop user to enter dot(decimal numbers) in text box

Hi @Muthusamy 

 

Use

IsMatch( TextInput.Text,"[.]",MatchOptions.Contains) 

this will return a true or a false depending on wether user enter a period or not

Then accordingly display error message or disable your submit button

 

Regards,

Reza Dorrani

 

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

2 REPLIES 2
Super User
Super User

Re: Can any one help me how can stop user to enter dot(decimal numbers) in text box

Hi @Muthusamy 

 

Use

IsMatch( TextInput.Text,"[.]",MatchOptions.Contains) 

this will return a true or a false depending on wether user enter a period or not

Then accordingly display error message or disable your submit button

 

Regards,

Reza Dorrani

 

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

Highlighted
Muthusamy
Level: Powered On

Re: Can any one help me how can stop user to enter dot(decimal numbers) in text box

Thanks Much Reza

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 272 members 3,488 guests
Please welcome our newest community members: