I am looking to create a function that will filter answers from a question on same page.
in qid B1B the chosen code, and all codes with a lower numeric value from B1A, must be removed, while higher codes must be displayed.
i have this bit of code (that works in a script in confirmit) - how do i make it perform the same way in Qualtrics?
//My scripting:
function B1Bk() //the function called to filter answerlist B1B
{
var s = new Set()
var max = 31;
if ( f('B1A')==max ) //If the highest value is selected
{
s = max; //we want to ensure that a logical answer is shown, so max is always shown
}
else if (f('B1A').toBoolean()) //if B1a is not=max, but still has been given an answer
{
var a = f('B1A').toInt() ;
a=a+1
s=nnset(a,max); //limit answers displayed to the codes higher than the chosen one, up to max value
}
return s
}
I am complete new to qualtrics, but has worked with the way confirmit uses javascript/j-script for some years now.
filter on answer (higher than/lower than) on same page
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.
