Preventing the user from copying and pasting from one text field to another.

Hi All.

How can we prevent a user from copying data from a text field and pasting it to diffrent field?

Thanks.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Unfortunately, you won't be able to prevent a user from using copy and paste functionality. However, you can ensure that two fields do not contain the same value by using a validation (e.g. if(ri!field1 = ri !field2, "Error message", ""). If you're dealing with a grid and you want to ensure that an entire column has unique values, you can use the fn!contains() function to see if the entered value already exists in another row. Hope this helps!

    Dan
Reply
  • 0
    Certified Lead Developer
    Unfortunately, you won't be able to prevent a user from using copy and paste functionality. However, you can ensure that two fields do not contain the same value by using a validation (e.g. if(ri!field1 = ri !field2, "Error message", ""). If you're dealing with a grid and you want to ensure that an entire column has unique values, you can use the fn!contains() function to see if the entered value already exists in another row. Hope this helps!

    Dan
Children
No Data