Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

numeric pattern for positive values only

Avatar

Not applicable
What pattern must be set to disallow users input negative values?
2 Replies

Avatar

Level 10
Why not just use the absolute function in javascript to force the number to positive after it has been entered?

Avatar

Not applicable
Hey Paul it's quite simple and good idea! I used something like this:



form1.#subform[0].NumericField1::exit - (JavaScript, client)

this.rawValue=Math.abs(this.rawValue);



And it works fine, Thanks!