How to disable ctrl+c/ctrl+v option for text field?

Posted by sahumanm on 17-Aug-2015 04:29

Hi Guys,

Can somebody please let me know about to disabling copy/paste option for a particular text field?

All Replies

Posted by James Palmer on 17-Aug-2015 04:39

Add CTRL+C and CTRL+V triggers to the field that just RETURN NO-APPLY. I think that should do it. Not tested though.

Posted by Dileep Dasa on 17-Aug-2015 04:52

Yes. As [mention:77cbb45621a246f9a1a1f2f378e535b1:e9ed411860ed4f2ba0265705b8793d05] said, RETURN NO-APPLY works. Default behavior is suppressed by NO-APPLY

Posted by sahumanm on 17-Aug-2015 06:30

[mention:77cbb45621a246f9a1a1f2f378e535b1:e9ed411860ed4f2ba0265705b8793d05] / [mention:f2c3b268940943f69cb639470006dc63:e9ed411860ed4f2ba0265705b8793d05]

Thanks guys, but i wanna to know is there any way to capture Event(Mouse/Keyboard events) for particular field so that we can disable it.

Like we have in JavaScript, we can write code snippet for password field which not allow to copy/paste for particular field  and rendering only following '********'.

Posted by James Palmer on 17-Aug-2015 06:41

A FILL-IN allows you to specify it is a password field. It's a property of the widget. You can still copy and paste though, so you need to do what I suggested to block that.

Posted by sahumanm on 17-Aug-2015 07:17

Actually I am bit curious to learn new things so here, What about the case where we had a char variable as text field in form design part and want to disable that text field for copy/paste.

Posted by James Palmer on 17-Aug-2015 07:23

Not sure I understand your question. How are you meant to select the text to copy/paste in the first place?

This thread is closed