Highlighted

Javascript code not working

New Here ,
Aug 14, 2020

Copy link to clipboard

Copied

Hello, I have made a PDF filable form with drop-down boxes for a football manager game.

I needed 4 export values so that when someone selected a player the corresponding Code, Rating, Fitness and Morale boxes filled with the players stats.

I could only make it work with 1 export value so I created a long number with all the info in it and used it as the export value, then I used sums to extract the seperate variable back out again into the corresponding boxes.

I hope that makes sense I have attached the file as well.

I have made it work but 2 of the boxes don't work despite it being copied and pasted, also randomly sometimes it does not work and the sums don't work out correctly, could somebody possibly take a look and tell me what is wrong?

Any help would be appreciated, Thank you

try change field calculation order. 

Izrezak.PNG

TOPICS
PDF forms

Views

32

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

Javascript code not working

New Here ,
Aug 14, 2020

Copy link to clipboard

Copied

Hello, I have made a PDF filable form with drop-down boxes for a football manager game.

I needed 4 export values so that when someone selected a player the corresponding Code, Rating, Fitness and Morale boxes filled with the players stats.

I could only make it work with 1 export value so I created a long number with all the info in it and used it as the export value, then I used sums to extract the seperate variable back out again into the corresponding boxes.

I hope that makes sense I have attached the file as well.

I have made it work but 2 of the boxes don't work despite it being copied and pasted, also randomly sometimes it does not work and the sums don't work out correctly, could somebody possibly take a look and tell me what is wrong?

Any help would be appreciated, Thank you

try change field calculation order. 

Izrezak.PNG

TOPICS
PDF forms

Views

33

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
Aug 14, 2020 0
Contributor ,
Aug 14, 2020

Copy link to clipboard

Copied

try change field calculation order. 

Izrezak.PNG

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...
Aug 14, 2020 1
New Here ,
Aug 14, 2020

Copy link to clipboard

Copied

Thank you, I will try this.

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...
Aug 14, 2020 0
New Here ,
Aug 14, 2020

Copy link to clipboard

Copied

This worked, thank you very much!

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...
Aug 14, 2020 0