Hello,
I have a request to set a calculated field using conditional logic and loop merge fields. Here is what I'm trying to accomplish with Javascript, and want to know if it is possible. I need to avoid using embedded data because it prohibits the user from going back in the form.
I'm trying to set a field in a survey to a field that is summed from a loop and merge section, if another condition is met within that loop and merge.
A conceptual look at what i'm trying to do, I have not tried to figure out what it would look like in javascript yet:
--------
Total direct costs = 0;
For (int i=0; i < 20 (my max loops); i++)
If (getSelectedAnswerValue = "Funded" in that loop merge round) {
Total direct costs += field that needs to be summed in loop and merge
Set descriptive field in survey to total direct costs variable
--------
Can something like this be done? Can I loop through loop and merge data and sum a field based off of a condition that is met within that loop and merge? Something like what piped text does, but I'm not sure if I can apply logic to piped text?
Any advice is greatly appreciated.
Thanks,
NAT
Calculating a descriptive field based off conditional loop merge
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
