Multiple Choice Question | Experience Community
Skip to main content
Question

Multiple Choice Question

  • Jun 20, 2022 5:10 AM UTC
  • 1 reply
  • 27 views

Forum|alt.badge.img

I am trying to fetch selected answer choices recode value of a checkbox question on the same page for a validation on onReady. I tried fetching this in an array and if that answer is unselected then it should also be removed from the array. I tried assigning span class to each answer list, not able to fetch that too.
Can anyone please help me with this.

1 reply

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+18
  • QPN Level 3 ●●●
  • Jul 12, 2022 9:49 PM UTC

You cannot call recodes on the same page. Instead use below code.
this.getSelectedChoices()
This will get your values and store it in array to apply your js.