Javascript - Array codes are not capturing the right code frame | XM Community
Solved

Javascript - Array codes are not capturing the right code frame

  • 29 January 2024
  • 2 replies
  • 18 views

Badge +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?

 

 

 

icon

Best answer by TomG 29 January 2024, 15:18

View original

2 replies

Userlevel 7
Badge +27

Try using setChoiceValueByRecodeValue() instead of setChoiceValue().

Badge +1

Thanks TomG 

Leave a Reply