Hello everyone,
I am simply trying to multiply the scoring value into the SelectedChoicesRecode but its not working. I used math operations to get the result but result is always 0 which indicate that the scoring values are not calculated in the formula.
I am trying to understand why scoring values for a question is not fetched
$e{q://QID12/SelectedChoicesRecode*gr://SC_3VIHusL0X3b0gM5/Score}
In summary, if I set embedded data to capture the values independently it works but when I try to combine them into a math operation it did not work !!
A-RecordValue = ${q://QID12/SelectedChoicesRecode} (value appears correctly)
A-ScoreValue = ${gr://SC_3VIHusL0X3b0gM5/Score} (value appears correctly)
A-Result = $e{q://QID12/SelectedChoicesRecode*gr://SC_3VIHusL0X3b0gM5/Score} (Did NOT WORK)
Many Thanks in advance...
Hi all,
I solved the issue after many tries to find out the root cause..
simply the issue is the missing Space between the math operator and the variables in the formula. It worked perfectly as expected. Below is an example of the working and invalid scenarios:
Wrong and invalid scenario:
// This below fomula does not contain any spaces before and after
// the multiplication operator (*). That's why it Did NOT WORK..
A-Result = $e{q://QID12/SelectedChoicesRecode*gr://SC_3VIHusL0X3b0gM5/Score}
Correct and Works well:
// This below fomula contains spaces before and after
// the multiplication operator (*). That's why it WORKs..
A-Result = $e{q://QID12/SelectedChoicesRecode * gr://SC_3VIHusL0X3b0gM5/Score}
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.