Getting an error in textbox while copy & paste

Hi Team

We are getting an error in textbox control.

The case is something that when we open the application first time and one form is there where textbox control are. When we copy & pat anything into it then below error is coming.

servoyformat.js:643 Uncaught TypeError: Cannot read property ‘length’ of undefined.

Can you please look into it and revert back to us.

Attached image for the reference purpose.

Hi, smilanshah.

The error message indicates that the expression:

value.length

cannot be evaluated, because the argument ‘value’ passed to the function for is null. Consider using the built-in debugger in Developer to track down the arguments you are passing to the function.

I hope this helps!

Hi smilanshah,

Are you sure you have a dataprovider attached to this form element?

Hope this helps.

Hi

We found the root cause and value set as balnk in servoyformat.js → function input(e) {
var currentValue = element.val();

}

In above code, element.val() is coming “” BLANK. and due to that it cause an issue.

Instead of above if we replace it with below then value is coming,

element.children().children()[0].value

Let me attach one snap for your reference too.

waiting response from your side.