PDA

View Full Version : Stop copy/paste in TextField



atul.sachan@capgemini.com
11 May 2012, 4:01 AM
Hello,

How to stop copy paste in 'Ext.form.field.Text'.

Regards,
At

scottmartin
11 May 2012, 8:56 AM
Do you still want to allow manual editing, but disable copy/paste? Can you be more specific?

Regards,
Scott

atul.sachan@capgemini.com
13 May 2012, 9:51 PM
I wanted to stop only paste, still edit should allow manually.

scottmartin
14 May 2012, 4:38 AM
You may have to get the id of the component and use JS's onPaste event.

Scott.

atul.sachan@capgemini.com
14 May 2012, 4:42 AM
But there is no '
onPaste' event , could you please provide any sample code???
Thanks,

scottmartin
14 May 2012, 4:57 AM
This will be a JS (javascript) function.

Scott.