Javascript - Array codes are not capturing the right code frame | XM Community
Skip to main content
Solved

Javascript - Array codes are not capturing the right code frame

  • January 29, 2024
  • 2 replies
  • 26 views

Forum|alt.badge.img+1

Hi, 

I am trying to group postcodes to LGA’s (e.g. postcode 2016 to code frame 106) but it’s being coded to 105..all the codes are off by 1..how can i fix this bug?

 

 

 

Best answer by TomG

Try using setChoiceValueByRecodeValue() instead of setChoiceValue().

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • January 29, 2024

Try using setChoiceValueByRecodeValue() instead of setChoiceValue().


Forum|alt.badge.img+1
  • Author
  • 1 reply
  • January 30, 2024

Thanks TomG