cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Muthusamy
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
RezaDorrani
Dual Super User II
Dual Super User II

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
RezaDorrani
Dual Super User II
Dual Super User II

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

Thanks Much Reza

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (61,627)