Highlighted

numeric pattern for positive values only

Avatar

Guest

11-06-2008

What pattern must be set to disallow users input negative values?

Replies

Highlighted

pguerett

11-06-2008

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

Avatar

Guest

12-06-2008

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!