Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating custom shaped buttons

Explorer ,
Apr 03, 2023 Apr 03, 2023

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:

auto-condition-report-car-check-eps-vector_csp31258542 conv.jpegexpand image

 

 

TOPICS
Acrobat SDK and JavaScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 14, 2023 Apr 14, 2023

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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 14, 2023 Apr 14, 2023

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 16, 2023 Apr 16, 2023

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;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2023 Apr 17, 2023

Hi,

 

Would this code replace the code in the picture button?

 

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 17, 2023 Apr 17, 2023

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 17, 2023 Apr 17, 2023

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2023 Apr 20, 2023
LATEST

- Correct. You would need to change their fill colors back to transparent.

- I didn't test it out, but I doubt it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines