Toggle menu

helper.utilListToArray(list [, allowBlanks])

Converts a comma separated list of values in a string to a JavaScript array.

If the allowBlanks parameter is true any empty values will also be included in the returned array. This function can be useful when processing multi-selection field types.

Arguments

ArgumentTypeDescription
listString, requiredComma separated list of values as a string.
allowBlanksBoolean, optionalIf true blank elements of the list will be included.

Returns

Array

Example

Share this page

Facebook icon Twitter icon email icon

Print

print icon