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

javascript help needed with adobe forms

New Here ,
Dec 30, 2025 Dec 30, 2025

I am fairly new at using JavaScript in Adobe Acrobat and I actually have a few questions.

 

  •  I have an textfield in my form. But I want the input to de duplicated to other fields (name below). I haven't set the name exactly the same, because I want the font size to be different. I added a script to the original field (which I want to be filled) with a "Mouse up" action and this script. But this didn't work: this.getField("Algemene-informatie_beursnaam").value = event.value
    • Field name: Beurs-informatie-naam_pages
  • Also at the end of the form I want to create a overview of the tasks. I want it or to update automatically or to update with a button, but I don't know how to do this. I asked AI (chatGPT) but he isn't really clear.

 

Please help. I can upload the file if needed for the help

TOPICS
JavaScript , PDF , PDF forms
343
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 ,
Dec 30, 2025 Dec 30, 2025

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

 

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 ,
Dec 30, 2025 Dec 30, 2025

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.

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 ,
Dec 30, 2025 Dec 30, 2025

- 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...

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 ,
Dec 31, 2025 Dec 31, 2025

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:

  • A page with a overview of all the tasks in the form.
  • Grouped tasks per person (persons are selected in dropdown fields with names starting with "Verantwoordelijk_")
  • Sorted tasks (within the groups) in alphabetical order
  • I want the page to show the following things (in this order)
    • Person responsible
    • Task
    • Page where to find it (button linking to this page)
    • Deadline (date)
    • Status (This can be either a option from a dropdown menu, just a "Done" or "To do". That depends on how the original field, because for some tasks its a checkbox (if checked it needs to say "Done" if not "To do") and other tasks have a dropdown menu.)
  • I would prefer the page to be updated automatically when something has changed if this is possible. If not a button to update it would also be fine
  • Tasks that do have a task and resposible field, but no deadline or status, should also be shown and the missing fields should just be left empty

 

What I have:

  • I have named all field in the same way
    • Starting with "Verantwoordelijk_" is the person resposible (it's a dropdown menu)
    • Starting with "Taak_" is the taskname (this is a text field)
    • Starting with "Deadline_" is the deadline (this is a date field)
    • Starting with "Status_" is the status of the task. This can either be a checkbox or a dropdown menu
  • Starting at page 20 I have made an overview with (read only) fields all starting with "OV" (overview) then the name of the field it would show and a number of the row. I have three pages where we can add the overvieuw.
  • I gave the main tasks also a "Verantwoordlijk_" and "Taak_" field. I hid the field for the task, after I filled them in, Because those are only needed for the overview and I don't want to Actually show them.

 

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.

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 ,
Dec 31, 2025 Dec 31, 2025
LATEST

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... 

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