Question not appearing in survey | XM Community
Skip to main content
Question

Question not appearing in survey

  • November 19, 2024
  • 4 replies
  • 119 views

Forum|alt.badge.img+1

Hello Community,

I’m having a block of questions fail to show up in my survey flow no matter what I’ve tried, and despite all other solutions I’ve seen online. 

This block, the “Ranking question” block, uses a Loop and Merge table, which loops based on a single selection from an earlier hidden multiple choice question. The choice for the hidden question, in turn, is set with a this.setChoiceValueByRecodeValue() function:
 


The console.log() shows the base_row_divided value correctly in the console. This is a single numerical variable corresponding to the recode values in the hidden multiple choice question). Nonetheless, the “Ranking question” block will not show up later in the survey. Perhaps the this.setChoiceValueByRecodeValue() function isn’t setting the choice correctly in my hidden multiple choice question? 

 

Has anyone experienced this or know of another solution?



(More context, so you know what solutions I’ve tried)

- I don’t think it is a survey flow issue: after a branch, the participants in each branch will see 4 blocks. The first three show up fine, but the fourth, the Ranking question block, always fails:

 

- The hidden multiple choice question which selects the loop for the “Ranking question” block is earlier in the flow.

- The hidden multiple choice question values are recoded correctly, and the base_row_divided value will always be one of these values.

- “Force response” and “Allow one answer” is enabled on the hidden multiple choice question as well. 
- There is no display logic involved for my problem “Ranking question” block
 

4 replies

ArunDubey
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+41
  • QPN Level 8 ●●●●●●●●
  • 589 replies
  • November 19, 2024

Did you download the data and check that your hidden question is storing punch.


Nam Nguyen
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+29
  • QPN Level 8 ●●●●●●●●
  • 1091 replies
  • November 19, 2024

@kuzay You should check in Data & Analysis to confirm that the hidden question are getting value properly. If it’s not, you can try switch to using .setChoiceValue

I don’t know if the Loop&Merge will work on hidden question, which mean hide question using Display Logic or JS might affect the function (will check on this when I back home)


Forum|alt.badge.img

@kuzay Try to keep both the questions ( Hidden and subsequent) in separate block rather than having both in same block for Loop and Merge to work properly


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • November 21, 2024
Abhishek Bhatt wrote:

@kuzay Try to keep both the questions ( Hidden and subsequent) in separate block rather than having both in same block for Loop and Merge to work properly



See my second context point - this is already the case


Leave a Reply