cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sharuk
Helper V
Helper V

limiting data card value to max number

Hi,

 

i'm having a datacard with number, where i want restrict the max value to 92. where the user shouldn't able to enter the value greater than 92. but as of i only see is the max length but not max value

 

Sharuk_0-1617691388964.png

 

is there a way where we can restrict the user to not to enter number which is > 92

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Sharuk ,'

On the OnChange of the Text box

If(
   Value(Self.Text) >92,
   Notify("Maximum value is 92",Error);
   Reset(Self)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @Sharuk ,'

On the OnChange of the Text box

If(
   Value(Self.Text) >92,
   Notify("Maximum value is 92",Error);
   Reset(Self)
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Sharuk
Helper V
Helper V

Hi @WarrenBelz , thanks for this. may i know this is the only way/approach to solve this ?

Hi @Sharuk ,

Pretty much - you have to test for the number and can only trigger this on the OnChange property. You then need to make sure it cannot be entered, therefore the Reset. What other process did you have in mind?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

WarrenBelz
Super User
Super User

Hi @Sharuk ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Drrickryp
Super User
Super User

@Sharuk 

As an alternative, you could try a slider control and set the max to 92.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,966)