Disable keys in HTML Custom Form textbox

QuestionsDisable keys in HTML Custom Form textbox
C3media asked 8 years ago

Hello,

I have this code tu disable keys C and V, but where to insert for Custom Form in phpgrid?

document.onkeydown = function() {
if (keyCode === 67||keyCode === 86) { //C, V will be disabled.
preventDefault();
alert('not allowed');
}
return false;
}

2 Answers
Abu Ghufran answered 8 years ago

Custom form are standard html code, which is outside phpgrid framework.
You can search on stackoverflow or google it. This is outside the scope of phpgrid support.

C3media answered 8 years ago

This is resolved, it´s finally not good practice as GUI.

Thank you!

Your Answer

13 + 7 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?