Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Adobe LifeCycle ES2 rounding up formula numeric value

$
0
0

I've used ES2 to create a user entry form. On that form there are 12 questions and each question has a radio button with a scoring system from 1 to 6 on it. The user is asked to select a score from the radio button for all 12 questions and then at the bottom the form gives an average score. This all works great but the score doesn't round up to the nearest whole number so it's not as accurate as I would like it to be. Could anyone give me any pointers as to ways of fixing this issue? I have no experience on coding and this is the first time I've used ES2 so go easy with me, the formula I've used just adds up the scores from each of the radio button fields and then divides by 12 (that's the number of questions).

 

The current code I'm using:
this.rawValue = parseInt(RBQ1.rawValue) + parseInt(RBQ2.rawValue) + parseInt(RBQ3.rawValue) + parseInt(RBQ4.rawValue) + parseInt(RBQ5.rawValue) + parseInt(RBQ6.rawValue) + parseInt(RBQ7.rawValue) + parseInt(RBQ8.rawValue) + parseInt(RBQ9.rawValue) + parseInt(RBQ10.rawValue) + parseInt(RBQ11.rawValue) + parseInt(RBQ12.rawValue) /12;


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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