I have two text entry boxes on a survey that are meant for employee ID. Both have custom validation. The first one limits entry to a specific number of numeric digits only. The second one serves to match against the first one.
I would like to prevent someone from copying the value from the first one (in case it is incorrect) and pasting it into the second one.
Solved
Block Copy Paste in a text entry box

Best answer by rondev
Try the below code:
jQuery("#"+this.questionId+" .InputText:eq(0)").on("cut copy paste",function(e) {
e.preventDefault();
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.