REPEATABLEVALUES

Return a specific field from multiple repeatable items

Parameters

repeatableVariable Object (required) - The repeatable field variable

dataName String (required) - The data name of the field to extract from each repeatable item

Returns

Array - An array of values of the dataName field from each item

Examples

REPEATABLEVALUES($repeatable_field, 'cost')

// returns [1,2,3]
REPEATABLEVALUES($repeatable_field, 'choice_value').map(CHOICEVALUE)

// used for returning values from a single choice field within a repeatable section
// returns ["widget","spinner","gizmo"]
FLATTEN(REPEATABLEVALUES($repeatable_field, 'choice_value').map(CHOICEVALUES))

// used for returning values from a multiple choice field within a repeatable section
// returns ["widget","spinner","gizmo"]