Add calculation to forms

I am trying to create a form that involve calculation. For example, I have several numerical concepts. I need to create one additional concept that is the sum of these numerical concepts.
Any idea how is it possible to create such a concept and add it to the form.

One more question: How is it possible to select more than one answer for the same coded concept. in other word add a check box and you can select multiple answers

Which forms module are you using?

html form entry

  • One more question: How is it possible to select more than one answer for the same coded concept. in other word add a check box and you can select multiple answers

One way to do this is using javascript, i.e. you’ll have an <obs ...> tag for the calculated concept to be generated (but in a hidden div or something) and then you’ll need to use some of these Javascript functions to set its value when the other ones are changed.

It’s also possible to do this by writing some custom code in a module of your own, and then calling it with the postSubmissionAction tag.

You mean something like this?

Which ones?
<obs conceptId="1" answerConceptId="7"/> Cough
<obs conceptId="1" answerConceptId="8"/> Fever
<obs conceptId="1" answerConceptId="9"/> Rash

amazing as always Darius