I am building a form where I need to calculate an integer by adding up integers entered in response to other questions. Some of these are subject to relevance expressions and might or might not appear depending on the options selected in previous questions.
Unfortunately, when they remain hidden and thus no integer is inserted, the following calculate function does not seem to be working. Therefore, I was wondering whether there is a way to ensure the calculate function automatically considers as zero all the integers of the questions with relevance expressions that do not appear.
Hi @nrc_me1
This issue has been previously discussed in some of the following topics represented in this search. I would also recommend that you follow this approach and it should solve your issue
Thanks a lot for your reply and for pointing me in the right direction.
I tried to fix it by using the IF function, but it does not seem to be working when the sum calculation includes addends that are null as a result of a skip logic (Relevant). It only works when the question is not conditional and I just leave the field blank.