1
0
-1

1 answer

  1.  
    1
    0
    -1

    You can do this by setting a form load rule with the following:

    $(".id-itemid input").on("paste copy", function(e){ e.preventDefault(); })

    This will prevent copy/paste in the field specified by itemid.

     

     

    1. David Foster

      Thanks John.

      In my case, the field was in the 3rd page, so wasn't available in the initial form load, but making a slight change to the script caters for this:

      $("body").on("paste copy", ".id-itemid input", function(e){ e.preventDefault(); });

      Again, "itemid" needs to be replaced with the id of the element.

    CommentAdd your comment...