Disabling the paste function in a text field

  • Profile Image
    Asked on February 24, 2016 at 09:39 PM

    I am creating a form and am wanting to restrict the user so they cannot paste text from another source into a text field on the form.  Is this possible?


    Thanks :)

  • Profile Image
    Answered on February 25, 2016 at 05:40 AM

    Hello FFAEventsReporting,

    Unfortunately it is not possible to achieve your requirement within the JotForm. You will have to download your form's full source code and add custom JavaScript code to disable the paste function.

    The following guide should help you how to download your form's full source code:  http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    You may like to check the following guide for the custom javascript code: http://stackoverflow.com/questions/15320069/how-to-prevent-user-pasting-text-in-a-textbox 

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!