How can you disable the paste function in a dynamic text box in a livecycle form?

prgmmgr

21-12-2012

HI

I have created several dynamic forms using livecycle.  I need to turn off the paste function in the text boxes to avoid staff from copying notes they have written previously and pasting them into a new document.  I have looked online and am not able to come up with any answers.  Maybe some sort of javascript.  They will still need to be able to type into the text box.

Thank you for your help

Mark

Accepted Solutions (0)

Answers (3)

Answers (3)

radzmar

MVP

02-01-2013

Hi,

this is indeed possible.

You can check if the change value is larger than one character.

If so, the change value is pasted from the clipboard.

All you need is to add this Script (FormCalc) to the change event of your field.

if (Len($event.change) gt 1) then

          $event.change = ""

endif