Highlighted

Spawned PDF calculations

New Here ,
Sep 23, 2020

Copy link to clipboard

Copied

The form has a number of questions where the user may want to add additional information. To do this each question has a checkbox with code for a variable (the question number). On spawning, the question number is shown on the spawned page, which works. However, if another checkbox is selected, it picks up its specific variable and this variable is applied to all spawned pages, rather than just the current one.

 

Is there a way to prevent earlier spawned pages from recalculating, i.e. picking up the new variable.

TOPICS
Community Information

Views

53

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Spawned PDF calculations

New Here ,
Sep 23, 2020

Copy link to clipboard

Copied

The form has a number of questions where the user may want to add additional information. To do this each question has a checkbox with code for a variable (the question number). On spawning, the question number is shown on the spawned page, which works. However, if another checkbox is selected, it picks up its specific variable and this variable is applied to all spawned pages, rather than just the current one.

 

Is there a way to prevent earlier spawned pages from recalculating, i.e. picking up the new variable.

TOPICS
Community Information

Views

54

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Sep 23, 2020 0
Adobe Community Professional ,
Sep 23, 2020

Copy link to clipboard

Copied

When you spawn a template, you have the option of renaming fields, which is what you need to do. But your calculations have to be set up to take into account the new names, which follow a particular naming convention, as described in the SDK documentation.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 23, 2020 0
New Here ,
Sep 23, 2020

Copy link to clipboard

Copied

Thanks George,

 

Are there any code examples for how this is done?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 23, 2020 0
Adobe Community Professional ,
Sep 23, 2020

Copy link to clipboard

Copied

Not a lot, since it highly dependent on the specifics of your form. You might want to start here: https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/#t=Acro12_MasterBook%2FJS_Dev_Temp...

 

And this should be helpful: https://lmgtfy.app/?q=Acrobat+JavaScript+spawn+template+calculations

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 23, 2020 1