Skip to Content
मेन्यू
This question has been flagged
1 Reply
4365 Views

Hi, I have a text field.

my_field = fields.Text()

I want to disable copying and paste(ctrl+c, ctrl+v) from intput with java script or python. How i can do it, thanks.

Avatar
Discard
Best Answer

Hi Pavel,

This thing you can do with the jquery event handlers cut, copy & paste.

Code: 

    $ (document) .ready (function () {

       $ ('# txtInput'). on ("cut copy paste", function (e) {

          e.preventDefault ();

       });

    });

Thanks ....

For more information Contact us:- https: //kanakinfosystems.com/odoo-development-services

Avatar
Discard
Related Posts Replies Views Activity
0
जन॰ 21
44
2
दिस॰ 23
12719
3
जुल॰ 22
23093
2
जून 21
18536
0
सित॰ 20
3717