Drop the quotes around all the numbers in your code.
Thanks. I have tried your suggestion but it didn't solve the problem.
Post your full code, please. Also, why did you place it as a validation script, and not a calculation one?
Ah, I think I see now what you tried to do... It should work, but you should replace all the instances of:
Also, make sure to tick the option to commit the selected value immediately, under the drop-down's Properties, Options tab.
Thanks for your reply. I have tried all your suggestions without success.
About your questions:
Why the validation window?
Since the dropdown menu does not really calculate and only serves as a setup for calculation on other fields I thought the calculation should be put into those other fields and I didn't see any other option to put the code in except for validation.
What I was trying to do?
1. Create text fields for 8 attributes where users enter numbers.
2. Create drop down menu and enter races.
3. Translate each race into numerical values and write these values into hidden variables.
4. Behind the 8 attribute text fields there are 8 attributetotal text fields. These 8 fields should show the combined result of the data entered in 1. + the data from the hidden variable (according to chosen race) for each field
Calculation works fine between all text fields.
Can you post your current code, or (better yet) share the file (via Dropbox, Google Drive, Adobe Cloud, etc.)?
1 person found this helpful
Read this article:
It'll show you how to best organize your data, and the correct way to set other values.
And since your interested in games, here is an example as PDF as a game platform, look at the Swat The Fly game on this page:
@Thom Thanks a lot! Actually I was looking to find example PDFs for me to learn. I will definately check these out.
I was able to change data with simple methods but the problem I seem to have with the dropdownmenu is that I need each "choice" to influence multiple variables accross the PDF (instead of just one).
@try67 Thanks for your effort. Unfortunately I can't distribute the PDFs as they contain copyrighted material.
@gkaiseril I'm too inexperienced to actually have an opinion on that.