I would like to make an autosum from prices in an drop-downlist.
In livecycle designer the function will work but when i make an pdf, the function will not work
anymore. What can i do?
Views
Replies
Total Likes
Hi,
please provide more information.
How does your function look like and how is you form builded?
Views
Replies
Total Likes
Hi,
I used this function:
$
= Sum(bedrag1[*])Bedrag is the name of the dropdownlists. In this dropdownlist the prices of products
can be selected. At the end i will see the total of this productprices.
Views
Replies
Total Likes
How do the prices look like in you DDL?
Did you use a currency symbol?
Views
Replies
Total Likes
In the ddl the prices look like this: 0,00 / 7,50 etc
i did not use any currency.
Only in the totalfield i set a display pattern. The total of the prices will be displayed in €
Is it possible to send you an example of the form?
Views
Replies
Total Likes
Just upload the file somewhere in the www like Acrobat.com and post a link here.
Views
Replies
Total Likes
I uploaded the file to Google Drive. Download it with the bit.ly link.
Views
Replies
Total Likes
Ok,
you need to change your script a bit because you have grouped all your DDL's.
Use:
$= Sum(xfa.resolveNode("#area.bedrag1")[*])
Views
Replies
Total Likes
Thanks for your answer, but when I change the script and save as pdf the autosum does not work.
Views
Replies
Total Likes
I don't see a problem.
The Totaal fields sums the values selected in the DDLs above.
Make sure you have selected "Interactive Form" as preview type in you form properties.
Views
Replies
Total Likes
Strange. Everything looks like you say, but at my computer it does not work.
https://workspaces.acrobat.com/?d=Xa*cH73CxNcPmiA-YZg7kQ
This is the .tds file. Can you please have a look?
Views
Replies
Total Likes
I cannot access the file, you propably forgot to share it.
Anyway, do other scripts work or is JavaScript deactivated in your Acrobat/Reader?
To run script (FormCalc or JavaScript) your PDF-viewer has to support JavaScript.
Views
Replies
Total Likes
Other script work in Acrobat Reader and Javascript is activated.
I shared the file. Now it must be possible to download the file.
Views
Replies
Total Likes
There is still not problem at my end, sorry.
You can try to remane the group into "Prijs" for example, then the script will be shorter. For me it also worked.
$ = Sum(Prijs.bedrag1[*])
Views
Replies
Total Likes
I know what the problem is. When i use a dot instead of a comma in the prices the function will work.
Strange is that the total will be display the price as 2,50
Do you think it is possible to use the prices as well with a comma instead of an dot? This is the standard in the Netherlands.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies