cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

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
Highlighted
Dual Super User
Dual 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
Highlighted
Dual Super User
Dual 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
Frequent Visitor

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

Thanks Much Reza

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,430)