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

How to add a % character to a form calculation

New Here ,
Sep 22, 2017 Sep 22, 2017

Hi there, thanks for reading.

Basically I have 4 boxes and 1 total box.

The total box sums up the 4 boxes as a number,

All i want to do is add a % symbol after the numbers.

The % format literally does a % calculation which I do not want.

For example in the 5 boxes i currently have:

10, 10, 10, 10, 40

I want

10%, 10%, 10%, 10%, 40%

Many thanks!!

Simon

TOPICS
PDF forms
476
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
1 ACCEPTED SOLUTION
LEGEND ,
Sep 22, 2017 Sep 22, 2017

I would set the format of the field to "Percentage" and then just add the custom calculation script without any decimal place adjustment. This approach uses the fact that the Format of a field only affects the field display and not the value of the field. This allows the value of the field to be used unchanged in other calculations.

Any value entered into a field is entered as the decimal value and not the percentage value. If one wants to add the "%" symbol and the changed decimal place, then one needs add additional calculations to filter the special symbol and adjust the decimal place any where that field's value is attempted to be used in another calculation.

View solution in original post

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
LEGEND ,
Sep 22, 2017 Sep 22, 2017

I would set the format of the field to "Percentage" and then just add the custom calculation script without any decimal place adjustment. This approach uses the fact that the Format of a field only affects the field display and not the value of the field. This allows the value of the field to be used unchanged in other calculations.

Any value entered into a field is entered as the decimal value and not the percentage value. If one wants to add the "%" symbol and the changed decimal place, then one needs add additional calculations to filter the special symbol and adjust the decimal place any where that field's value is attempted to be used in another calculation.

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 ,
Sep 25, 2017 Sep 25, 2017
LATEST

That sounds fine. Much appreciated!

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