Skip to main content
Solved

Attribute for storing probability percentage


Forum|alt.badge.img

Does anyone have the Entry Mask or Reg Exp I would use to configure an attribute in Common Settings to only allow entry of whole numbers between 0 and 100?

 

 

Best answer by jturcotte

One way to force this with Regex is:
\b(^[0-9]$|^[1-9][0-9]$|100)\b

This will only allow the numbers 0 - 100 and prevent negative values and decimal values.
 

 

View original
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img+2

Hello @john55 

I found this community article that might be helpful 

 

Also a product idea that had been posted, encourage you to vote for it https://community.acumatica.com/ideas/need%2Dnumeric%2Dsupport%2Dfor%2Dattribute%2Dtype%2D3466

 


Forum|alt.badge.img
  • Author
  • Freshman I
  • 30 replies
  • March 8, 2024

Thank you @pallikasharma11, I’m referring here to configuring an attribute in Common Settings.  I updated my question to be more clear.  I had previously voted for the product idea.


Forum|alt.badge.img+2

My apologies, can you give this Entry mask a try #,###


Forum|alt.badge.img
  • Author
  • Freshman I
  • 30 replies
  • March 8, 2024

@pallikasharma11 

I’m familiar with using the # sign to limit user input to numeric values.  But #,### doesn’t prevent users from entering numbers greater than 100.  

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2754 replies
  • April 24, 2024

Hi @john55 were you able to find a solution? Thank you!


  • Jr Varsity I
  • 5 replies
  • Answer
  • April 25, 2024

One way to force this with Regex is:
\b(^[0-9]$|^[1-9][0-9]$|100)\b

This will only allow the numbers 0 - 100 and prevent negative values and decimal values.
 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings