Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

159
Views
Edit "Pick, Group, and Rank" choices in Qualtrics using JavaScript

I am trying to dynamically populate options for my question. To change the question text, I can do something like this in the question's JavaScript:

jQuery("#"+this.questionId+" .QuestionText").html(...)

How would I do something similar to this for choice descriptions? Here is what I thought would work based on names in the Workflow tab:

jQuery("#"+this.questionId+" .ChoiceDescription/1").html(...)

Because there are thousands of possible questions and they have their respective choices, I would prefer to do this purely through JavaScript as I have a JSON object of all the data I need. But alternatives are welcome.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to use the correct selector. You can use your browser's inspect feature to find the correct element to update. For a PGR choice description 1 it would be:

jQuery("#"+this.questionId+" .Items li[data-choiceid=1] label>span").html(...)
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!