Copy link to clipboard
Copied
I have and editable PDF with text fields and an image field. I have a custom icon in the image field so end-users know where to click to upload their own image. If they do NOT upload an image the icon still prints. How do I change it so the icon will not print if they upload an image? Thanks!
Copy link to clipboard
Copied
You can't interact with a hidden field. Set it as "visible but doesn't print" and use this code as its MouseUp script
if (event.target.buttonImportIcon()==0) event.target.display = display.visible;
Copy link to clipboard
Copied
I would set the display property for the image field to "display no print". This should be available on the field's property pop-up window.
Copy link to clipboard
Copied
But then it won't print even if the user selected an image... You would need to adjust the code that imports the image to also change the field's display property.
Copy link to clipboard
Copied
I even tried "Hidden but Printable" but there's nothing there to click to upload and image. I don't even see a finger/hand when I roll over it that there's a field there. The only thing that I found that works is to use the default icon only and not use a custom design icon. But I really want my little "place image here" custom icon...
Copy link to clipboard
Copied
You can't interact with a hidden field. Set it as "visible but doesn't print" and use this code as its MouseUp script
if (event.target.buttonImportIcon()==0) event.target.display = display.visible;
Copy link to clipboard
Copied
YES!!!!!! Thank you! That worked! I combined your code with another I found to make the stroke and fill transparent as well. This is what I used and it's perfect!!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now