Solved

Any way to restrict user to add only 2 digits in NumberEdit control

  • 18 November 2022
  • 3 replies
  • 110 views

Userlevel 2
Badge

I want max two number in my Custom field. 

Example the value of that field cannot go above 99.

I have set the MinValue and MaxValue like this

[PXDBInt(MinValue = 1, MaxValue = 99)]

 

but ideally i would like to restrict user from entering the third digit. If anyone knows plz answer.
Thanks.

icon

Best answer by Naveen Boga 18 November 2022, 13:12

View original

3 replies

Userlevel 7
Badge +17

@param2022  Here is the link where we can get knowledge on the each Web Control properties and hope this helps.

 

http://asp.net-informations.com/webcontrols/web-controls.htm

Userlevel 2
Badge

@Naveen Boga this worked Thanks.

 

Can you plz tell where can I get the documentation for the ASPX properties like this it would be very useful for me.

Userlevel 7
Badge +17

Hi, @param2022  Yes, we can restrict to adding only 2 digits.

 

Please add the MaxLength=2 for the field in the .aspx page and check. Here is the screenshot for reference.

 

 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved