Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87561

Re: Audit guide tally and auto-calculation

$
0
0

I'm not sure what you mean by "ALL" part of the script, but I think the problem may be because you have used the same script for all your categories.


I assume you have separate checkboxes for "General Administration", "Training", "Medical Readiness", etc.


The script provided earlier declares certain variables such as "selectedFields" and "f", and gives those variables a value.


Every time you declare a variable, it re-sets the previous value, so you need to have unique variable names for your different categories.


For example for "Training" you need to use different variable names, e.g.

"Training_selectedFields" in line 2

"g" in lines 4, 6 and 8

 

Having unique variable names avoids the problem of some variable values "overriding" other variable values that were declared earlier.


You should also use Gilad's suggestion in Post no.5.


Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>