Question Status

PEj asked a question on 24 Mar 2015 7:09 PM

Hi, Im trying to get multiple values from multiple options sets and then add them all together and insert into another field via javascript. I need the JavaScript to work if only 2 of the 9 options sets have a value?  

mscrmba responded on 24 Mar 2015 9:59 PM

Is this what you are thinking of doing?

Set temporary values for each of the 9 option sets to the value selected (if not null).

Then count the temporary values that are not null.

If count = 2 then concatenate the temporary values held (or sum if they are numerical values) for the non-null values.

PEj responded on 25 Mar 2015 8:11 AM

yes in the option set i have two values 0 or 5 and when the user choose an option i would like it to update another field on the form with the sum