Creating custom shaped buttons
Copy link to clipboard
Copied
HI,
I was wondering if i am able to make custom shaped buttons on an Adobe form. i would like to make a checking in form that shows any damage done to panel work, i would like the user to click areas of an image (can be made of several images if required) that wil lthen highlight red to show where the damage is. i was hoping to use something like the image below:
Copy link to clipboard
Copied
Download the attachment provided in the best answer of this topic, you will just have to change the image (placed in the layout) or copy-paste the fields into your document:
https://community.adobe.com/t5/acrobat-discussions/indicate-pain-areas-on-body-chart/m-p/11104870
PDF Acrobatic, InDesigner & Photoshoptographer
Copy link to clipboard
Copied
Hi,
That is exactly what im looking for, unfortunatly as i will be using it on an IPad through PDF Expert it does not work! im not even sure how you would convert the code to do so eiter!
Either way, Thank you very much!
Copy link to clipboard
Copied
If the locations are limited you can use regular button fields and change their fill color with each click. It will be less flexible than the example I provided in the linked-to thread above, but should work on PDF Expert.
The basic code for doing it is:
if (color.equal(event.target.fillColor, color.red)) event.target.fillColor = color.transparent;
else event.target.fillColor = color.red;
Copy link to clipboard
Copied
Hi,
Would this code replace the code in the picture button?
Thanks
Copy link to clipboard
Copied
Yes, and you would need to create a separate button field for each "area" you want the user to be able to mark, of course.
Copy link to clipboard
Copied
Ok, that makes sense, as for the clear button do i set that up as a reset form button but only for the coloured buttons?
so there is no way using the PDF Expert app to only place "x" where required?
Thanks
Copy link to clipboard
Copied
- Correct. You would need to change their fill colors back to transparent.
- I didn't test it out, but I doubt it.

