Skip to main content

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.

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.

 

 


@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.


@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


Reply