These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Possible to mark images within an Adobe form created in LiveCycle?

AmyG
Registered: Apr 9 2010
Posts: 20
Answered

I have a form created in LiveCycle Designer ES and extended in Adobe 9 pro for general use. A user completes the form and then submits it by clicking an email button.

The form includes a small picture. I am wondering if it is possible to have those who are completing the form be able to put a mark on the picture?

For example, if someone needs to indicate that s/he injured his/her right hand, then s/he would click on the right hand and an "x" would appear on the form. Ideally, it would be possible for a user to place the x anywhere on the picture.

Thanks in advance for any assistance,
Amy

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
With a regular AcroFrom you could use the markup annotations to do this. But not with a pure LiveCycle form. If the form does not need to be dynamic you could use a regular PDF as a background, and this would allow you to apply markups to the image.

See this thread:
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=25347

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can do this in the following way.
Use a static image and put some regular buttons everywhere over the image you would like to have a cross.
Then you need to modify the buttons a bit.
Set everything to "none" in the border tab and delete the caption, so the buttons are transparent.
Then add a script to the click:event of the buttons.

if($.caption.value.text.value == "X") then$.caption.value.text.value = ""else$.caption.value.text.value = "X"endif

The script add/removes the caption "X" everytime the users click on the buttons.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

AmyG
Registered: Apr 9 2010
Posts: 20
Radzmar,

Thank you for the excellent suggestions. I have inserted the buttons, adjusted the formatting and put the code in for a click event in LiveCycle. When I extend the form in adobe pro 9 (I have other features that require extending the form) and I click on the image, I see the button "flash" but no X is inserted. I copied and pasted your code in entirety. Do I need to modify it in any way?

Thanks,
Amy
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Well,

this can become a bit tricky I noticed.
It's can be a problem, to use empty strings "", especially when initializing the form.
But you can use spaces " " instead.
I made an example for you, you can work with.
It shows the skyline of my city. You can click on the church spires to make a ring in/visible.

[url]https://acrobat.com/#d=muK33RRBTnyKIuAJMhNR1A[/url]

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

AmyG
Registered: Apr 9 2010
Posts: 20
Radzmar,

Beautiful picture. Thanks for the information.

Amy