What is the difference between answer choiceText and description? | XM Community
Skip to main content
Solved

What is the difference between answer choiceText and description?


Forum|alt.badge.img+1

When I call the /surveys API endpoint I can see that answers have both a choiceText and a description, and they appear to be usually the same value, but I can find no documentation explaining what the difference is between these two fields or if it’s possible to edit one of them separately from the other (which would be nice because then changing the text of an answer wouldn’t nec. have to be a breaking change). I don’t see a way to edit any other answer fields in the survey builder UI.

 

What is the difference between answer choiceText and description?

Best answer by Shashi

Choice text is the text respondent see and description is variable naming of the option.

View original

5 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • Answer
  • January 11, 2024

Choice text is the text respondent see and description is variable naming of the option.


Forum|alt.badge.img+1
  • Author
  • 4 replies
  • January 12, 2024
Shashi wrote:

Choice text is the text respondent see and description is variable naming of the option.

Thank you!


Forum|alt.badge.img+1
  • Author
  • 4 replies
  • January 12, 2024
Shashi wrote:

Choice text is the text respondent see and description is variable naming of the option.

Actually, I’m not sure if that’s right, because the surveys/ API endpoint returns 3 fields for answers: choiceText, description, and variableName. ChoiceText and description are always the same. Sometimes variableName is the same; sometimes it’s null.


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 12, 2024
levihobbs wrote:
Shashi wrote:

Choice text is the text respondent see and description is variable naming of the option.

Actually, I’m not sure if that’s right, because the surveys/ API endpoint returns 3 fields for answers: choiceText, description, and variableName. ChoiceText and description are always the same. Sometimes variableName is the same; sometimes it’s null.

If for the question variable naming is enabled then variableName will not come null.


Forum|alt.badge.img+1
  • Author
  • 4 replies
  • January 17, 2024

My question is still unanswered. There are three fields, but only 2 known functions of these fields.

  • choiceText - the text respondents see
  • variableName - this is the name that you input if variable naming is enabled
  • description - what is this?

Surely description and variableName don’t do the same thing.


Leave a Reply