Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TransformInput curosr moves to front of input

    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:

    Code:
    isc.DynamicForm.create({
        width: 300,
        fields: [
            {title:"Float", type:"float", transformInput: function(form, item, value, oldValue){
                   return Math.floor(value * 100) / 100;
               }
                    
             } 
        ]
    });
    Any suggestions as to how to remedy this?
    Thanks
    Last edited by tracys; 20 Mar 2014, 06:14. Reason: spelling mistake
Working...
X