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.

    2. Kevin Ngo

      Hello,

      How do I validate the data on the same field? I am preventing the copy/paste function on the confirmation email field but I would also like to validate it with the email field.

      Thanks!

    CommentAdd your comment...