Having a problem when using transforminput of a field of type float. We want to limit the number of decimals to 2 places when entering in a float field. When you type in e.g. 123.456 - the cursor jumps to the front of the text e.g.|123.45.
Tested on Chrome and IE.
Using Smartclient version v8.3p_2013-11-10/Pro Deployment (built 2013-11-10)
Sample code:
Any suggestions as to how to remedy this?
Thanks
Tested on Chrome and IE.
Using Smartclient version v8.3p_2013-11-10/Pro Deployment (built 2013-11-10)
Sample code:
Code:
isc.DynamicForm.create({ width: 300, fields: [ {title:"Float", type:"float", transformInput: function(form, item, value, oldValue){ return Math.floor(value * 100) / 100; } } ] });
Thanks