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

When calculating fields, can't get rid of preview text

New Here ,
Jan 29, 2021 Jan 29, 2021

Copy link to clipboard

Copied

Hello,

After placing a calculation formula for 2 fields Acrobat automatically places a number in that field which I would like to remain hidden unless something has been entered into that field. So in the image below I have the quantity box being multiplied with the unit price. For all of the fields that nothing has been entered there is a $0.00, and this is what I want to get rid of. I tried the hide option in the property pane for the top extended price box but then it will not show the total for that field. I need these boxes clear so that this form can be printed and filled out or filled out and then printed. Any help would be greatly appreciated!

 

Screen Shot 2021-01-29 at 11.29.45 AM.png

TOPICS
How to , PDF forms

Views

291

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Jan 29, 2021 Jan 29, 2021

Add this script as the custom validation script of those fields:

if (event.value==0) event.value = "";

Votes

Translate

Translate
Community Expert ,
Jan 29, 2021 Jan 29, 2021

Copy link to clipboard

Copied

Add this script as the custom validation script of those fields:

if (event.value==0) event.value = "";

Votes

Translate

Translate

Report

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
New Here ,
Jan 29, 2021 Jan 29, 2021

Copy link to clipboard

Copied

Thank you for your response but this code gives me the following syntax error...

 

Screen Shot 2021-01-29 at 1.19.59 PM.png

Votes

Translate

Translate

Report

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
New Here ,
Jan 29, 2021 Jan 29, 2021

Copy link to clipboard

Copied

LATEST

Nevermind I left out the "If" at the beginning.

That worked great, thank you!

Votes

Translate

Translate

Report

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