Values from Choice Field in Repeatable

Due to the nature of choice fields, the REPEATABLEVALUES() expression cannot be used on its own when pulling values from a choice field inside a repeatable section. Instead use the example below.

 if ($repeatable_section == null){
   SETRESULT(null);
 } else {
   REPEATABLEVALUES($repeatable_section, 'choice_field_data_name').map(CHOICEVALUE);
 }