Hi guys,
I have created an evaluation form with 50 select fields. These each contain the values 1...10. Now I wanted to display the sum in a Calc field. But these select fields are not available in the Formula-Builder. Why not?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
calculate sum of select fields?
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: calculate sum of select fields?
If you apply a little 'hack', you can manually add fields to the Formula Field and modify the formula as you want.
Then it even calculates Select Objects (if they contain numbers)!
This "manual mode" is also convenient if you need to modify the formula later. Currently you need to delete and recreate the formula. Especially for larger formulas, the "manual mode" has proven useful!
All you need to do is add this JavaScript under Setup -> Header:
Then it even calculates Select Objects (if they contain numbers)!
This "manual mode" is also convenient if you need to modify the formula later. Currently you need to delete and recreate the formula. Especially for larger formulas, the "manual mode" has proven useful!
All you need to do is add this JavaScript under Setup -> Header:
Code: Select all
function nuOnLoad() {
var p = nuCurrentProperties();
if ((p.form_id == 'nuobject')) {
// Calculator not readonly
$("#sob_calc_formula").prop("readonly", false).removeClass('nuReadonly');
}
}
You do not have the required permissions to view the files attached to this post.
Re: calculate sum of select fields?
Guys,
Select Objects are now included.
The changes are now on Sourceforge.
Steven
Select Objects are now included.
The changes are now on Sourceforge.
Steven