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

Adobe form - Adding number sign and make text only visible if text is in calculated field

New Here ,
Jul 28, 2020 Jul 28, 2020

Hi All

 

I am composing a Quote form that has mutipal form fields.

Part number, Description, Qty, Unit Price, and Total.  I have a calculate value where Qty x Price = Total.

 

I want a number sign ($) in the total field, and i only want the field to be visible if there is a value in the Qty and Price Fields.

 

I found a Custom sctipt that woud make the field only visible if the Qty and unit price had numbers in them, but that cancles out the Number sign.

 

Is there a way to add the number sign and only have it visable if the Qty and Unit price are filled?

 

Thanks for you help

 

Andrew

TOPICS
Edit and convert PDFs , How to , PDF forms , Windows
635
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 ,
Jul 28, 2020 Jul 28, 2020

All you need to do is set the field as empty if the result is zero.

Add this code as its custom validation script to achieve that:

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

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
New Here ,
Jul 29, 2020 Jul 29, 2020

try67,

 

When you do that it takes away the number sign ($).

To add the number sign go under  Format, "Select format category" then number.  To add the Script you go to Format, "Select format category" then Custom then Custom format Script.  It is either 1 or the other.

 

Is there a way to have both?

 

Thanks,

 

Andrew

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 ,
Jul 29, 2020 Jul 29, 2020

Read my reply more carefully, please. This code is not to be used as the Format script, and should not interfere with 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
New Here ,
Jul 29, 2020 Jul 29, 2020
LATEST

My Apologies, thanks try67 that worked.

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