Highlighted

Strange Behavior

Explorer ,
Oct 02, 2020

Copy link to clipboard

Copied

I'm building a user-editable form and I've noticed that when values are added, some fields don't update until another field is altered. It doesn't matter what filed. It's as if they're calculating one step behind. 

 

For instance, if I have a field 'output', which displays the sum of input1 and input2. 

With nothing filled out, output displays '0'.

I enter 3 to input1, but output still displays '0'.

I enter 5 to input2, and output displays '3'.

I delete the value in input2, and output displays '8'.

 

It just keeps going round and round, one calculation behind.

 

This is just a simplified example to illustrate the behavior. My actual form is using javascript to handle the calculations.

 

I can't seem to figure out why it's doing this. Is there some limit on the number of fields on a form, before it starts to act funny?

 

Anyway, much appreciation for any direction.

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

Change the field calculation order.

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

127

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

Strange Behavior

Explorer ,
Oct 02, 2020

Copy link to clipboard

Copied

I'm building a user-editable form and I've noticed that when values are added, some fields don't update until another field is altered. It doesn't matter what filed. It's as if they're calculating one step behind. 

 

For instance, if I have a field 'output', which displays the sum of input1 and input2. 

With nothing filled out, output displays '0'.

I enter 3 to input1, but output still displays '0'.

I enter 5 to input2, and output displays '3'.

I delete the value in input2, and output displays '8'.

 

It just keeps going round and round, one calculation behind.

 

This is just a simplified example to illustrate the behavior. My actual form is using javascript to handle the calculations.

 

I can't seem to figure out why it's doing this. Is there some limit on the number of fields on a form, before it starts to act funny?

 

Anyway, much appreciation for any direction.

Adobe Community Professional
Correct answer by Bernd Alheit | Adobe Community Professional

Change the field calculation order.

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

128

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
Oct 02, 2020 0
Adobe Community Professional ,
Oct 02, 2020

Copy link to clipboard

Copied

Change the field calculation order.

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...
Oct 02, 2020 0
Explorer ,
Oct 02, 2020

Copy link to clipboard

Copied

Where can I find that option?

Is this like the Tab Order setting?

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...
Oct 02, 2020 0
Explorer ,
Oct 02, 2020

Copy link to clipboard

Copied

Found it. It is in the same area as Tab Order. 

I've got over 400 fields on this damn form. Gonna take a while to swim through the order, they was Acrobat has it set up...

 

Thank you, kindly.

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...
Oct 02, 2020 0
Adobe Community Professional ,
Oct 02, 2020

Copy link to clipboard

Copied

Yes, you can find it also at the More dropdown menu.

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...
Oct 02, 2020 0
Explorer ,
Oct 02, 2020

Copy link to clipboard

Copied

I assum items higher on the list calculate first, so any change will cascade down?

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...
Oct 02, 2020 0
Adobe Community Professional ,
Oct 02, 2020

Copy link to clipboard

Copied

Correct

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...
Oct 02, 2020 0
Explorer ,
Oct 04, 2020

Copy link to clipboard

Copied

Thank you very much. That solved nearly all my issues.

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...
Oct 04, 2020 0