Adobe changes my numeric field to include commas when validation fails. My numeric validation setting is num{zzzzzzz9.99}. I want my numeric field to display as 99999999.00, no commas and only to have 2 decimals places. I added this validation to the Display, Edit, Validation and Data tabs under the validation pattern dialog box.
When validation fails, adobe changes the display of the field to include commas and drops the decimal places:
999,999,999
How can I prevent this from happening? Any feedback is greatly appreciated.
I've also added a change event to the field as well:
\\only allows numbers and period.
if (xfa.event.newText.match(/[^0-9.]/)) |
{
xfa.event.change = "";
}
\\only allows 11 characters to be entered.
var maxLength = 11;
if(xfa.event.newText.length >maxLength)xfa.event.change = "";