Jump to content

UniEdit Currency format


Recommended Posts



the decimalPrecision is ok


i just want to make sure clients do not enter a decimal seperator more than once.


input 12...12  or 12.454.000... etc


the decimalPrecision works ok, its just the input

Link to comment
Share on other sites

clear ...

then try:


UniNumberEdit1 -> ClientEvents -> ExtEvents -> Ext.form.field.Number add function keydown

function keydown(sender, e, eOpts)
  if (e.getKey() == 190 || e.getKey() == 110) {
    if (sender.getRawValue().indexOf('.') > -1) e.preventDefault();

but it does not work for copy/paste (but it can also be done...)

best regards.

  • Upvote 2
Link to comment
Share on other sites


  • Create New...