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

Avatar

Avatar
Level 1
prgmmgr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
prgmmgr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
prgmmgr
Level 1

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)

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

397 likes

Total Posts

2,687 posts

Correct reply

492 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
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

Avatar

Avatar
Level 1
prgmmgr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
prgmmgr
Level 1

Likes

0 likes

Total Posts

5 posts

Correct reply

0 solutions
View profile
prgmmgr
Level 1

29-05-2015

Yes - the above solution works

Mark

Avatar

Avatar
Validate 1
Level 1
tanmay_singh
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
tanmay_singh
Level 1

Likes

0 likes

Total Posts

17 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
tanmay_singh
Level 1

10-03-2015

Hi,

Did you get the solution for this?

I have a similar requirement, which has e-mail and confirm e-mail fields.

Thanks

Tanmay