Copy link to clipboard
Copied
I am fairly new at using JavaScript in Adobe Acrobat and I actually have a few questions.
Please help. I can upload the file if needed for the help
Copy link to clipboard
Copied
Also I added a (sum) calculation on one of the pages and that isn't working as it should either, while this should just be an acrobat option
Copy link to clipboard
Copied
You can name the fields exactly the same and have different appearance properties (font color, size, etc.) for them.
https://pdfautomationstation.substack.com/p/widgets
A mouse up action is not a good choice for this type of calculation. Use a calculation script in the field that duplicates the value, or a validation script in the field in which the value is being manually changed. Check the console for errors.
Copy link to clipboard
Copied
- Do the reverse. The copy fields should have a script under the Calculate tab, like this (assuming the name of the original field is "Algemene-informatie_beursnaam"):
event.value = this.getField("Algemene-informatie_beursnaam").value;
- You need to be more specific, but generally this is done using a custom calculation script as well, which collects the data from the other fields in the file and creates a single string from it.
- If the Sum doesn't work check the JS Console for errors, as well as the fields calculation order.
For further help share the file...
Copy link to clipboard
Copied
Thank you! I think the sum works and so does the value copying. But I don't really know how to get started with the task overview. chatGPT told me to add field for it and then use a script or something like that, but I didn't really understand it.
What I want is:
What I have:
I have added the file, can you please help me and explain something about it, because if/when this works I want to add some other slightly different overview pages. So I want to learn it, as to not have to ask it again.
Copy link to clipboard
Copied
This is not a trivial task. You would need to write a script that iterates over all the data fields in the file, collect their data into an array, sorts that array (based on the person's name) and then populate the "summary" fields with that data. It can either be automatic (by connecting it to the Calculation event of a field), or it can be triggered by pressing a button. The former is easier for the user, but might cause the file to lag, as it will update each time you change the value of any field in the file.
If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on the blue "Message" button.
PS. There seems to be issues with the forum today, probably because of the move to the new platform...
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more