Copy link to clipboard
Copied
Hi,
Am attempting to get a field (H_ARM) to be "hidden" if a specific value (22.86615) is displayed, and if any other value at all is present, then the field should be "visible".....any ideas?
Use this code as custom validation script:
event.target.display = event.value == 22.86615 ? display.hidden : display.visible;
Copy link to clipboard
Copied
How do you insert values into that field?
Copy link to clipboard
Copied
The field is automatically populated from another field called "ZFW_CG_ACTUAL", and the figure is calculated in that field to 5d.p. - whereas the "H_ARM" field is set to 2d.p. - i've tried both iterations and variations (on d.p.'s) but without success ;-(
Copy link to clipboard
Copied
Use this code as custom validation script:
event.target.display = event.value == 22.86615 ? display.hidden : display.visible;
Copy link to clipboard
Copied
Hi Nesa,
Many thanks for your earlier reply - question if you don't mind? the script works fine, but when using on an iPad the value is intially hidden as desired but when using a drop-down field to populate the the "H_ARM" field, and then selecting a NIL value drop-down option, the "22.86615" value remains.....works as desired on a PC, but not iPad (using Fluix) - any ideas? 😉
Copy link to clipboard
Copied
It won't work on mobile devices. Check this post https://community.adobe.com/t5/acrobat/pdf-forms-code-not-working-on-ipad/td-p/10384546?page=1