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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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.
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
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
0
jan 21
|
44 | ||
|
2
dec 23
|
12272 | ||
|
3
júl 22
|
22500 | ||
|
2
jún 21
|
18119 | ||
|
0
sep 20
|
3454 |