Skip to main content
Participating Frequently
July 13, 2023
Question

Hide and show a text field based on icon selection

  • July 13, 2023
  • 1 reply
  • 515 views

I would like to know a Script that can make a normal text balloon disappear and appear based on the image selection through an "ImportIcon". I want that, when he selects an image, whatever it is, the "Text1" field is hidden, and when this image is out, it is visible.

This topic has been closed for replies.

1 reply

AkanchhaS8194121
Legend
July 13, 2023

Hi @Lucas 1231048268dhlp 

 

We have had several similar discussions where Java Script was used to perform a similar task. Please go through this discussion and see if it could be helpful. 

 

https://community.adobe.com/t5/acrobat-discussions/javascript-to-hide-show-text-field/m-p/11744572

https://community.adobe.com/t5/acrobat-discussions/show-hide-text-field-based-on-a-number-in-another... 

 

Thanks,

Akanchha

Participating Frequently
July 13, 2023

I'm sorry, but they didn't help at all. I wanted one. Code that manages to hide a field based on whether an icon is selected or not. Example: we have the field "Text" and "IMG". If the "IMG" contains any icon or image, whatever it may be, the "Text" field will have to be hidden; if not, it is visible.