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

PDF dynamic - Multiple total Amout depend on select type

Community Beginner ,
Sep 05, 2023 Sep 05, 2023

Hello everyone, Here is a table representing the situation:

 

Presage320826053p8r_0-1693912789619.png

 

I would like to know how to associate an amount with a select option in order to calculate a different total amount for each select option. I'm not sure if this is achievable, and I don't know much about JavaScript. Thank you in advance for your help!

François

TOPICS
Create PDFs , How to , JavaScript , PDF , PDF forms
625
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 ,
Sep 05, 2023 Sep 05, 2023

What type of fields do you use?

If you use the dropdown field for 'OptionType' you can add amount as export value to each type.

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 Beginner ,
Sep 05, 2023 Sep 05, 2023

Hello Nesa,

Thanks for your answer.

The amount must be variable and not fixed. So i use a dropdown field for the selectType and a textfield for the amount.

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 ,
Sep 05, 2023 Sep 05, 2023

So how do you decide what is the amount for each option?

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 Beginner ,
Sep 06, 2023 Sep 06, 2023
LATEST

As the amount is variable, it cannot be found in the option. From my perspective (which may not be accurate), the different options determine the distribution of the various total amounts.

Here is an exemple :

 

FranoisMatte_0-1693987170959.png

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